Skip to content
Snippets Groups Projects
  1. Jan 19, 2015
  2. Jan 16, 2015
  3. Jan 15, 2015
  4. Jan 14, 2015
    • Martin Trigaux's avatar
      [FIX] delivery: reset delivery info on duplicate/backorder · f4068476
      Martin Trigaux authored
      The tracking reference and other delivery references are not relevant to
      duplicated pickings. Overwrite copy to remove carrier_tracking_ref, volume and
      number_of_packages.
      
      Add fallback on stock.picking.in and out to use copy method of stock.picking.
      
      For partial delivery, the duplicated picking is the delivered order and
      the existing picking is the backorder of the delivery (why so much hate?).
      This means we have to switch the delivery info between the backorder and
      the delivered picking.
      Combo opw 615593 and 618802
      f4068476
    • Christophe Simonis's avatar
    • Simon Lejeune's avatar
    • Denis Ledoux's avatar
      [FIX] mrp: prevent creating production lines when testing if production is of product type · 30a7bea0
      Denis Ledoux authored
      The method test_if_product, used in the workflow to test that the mrp production is for a product (!= service), used to call the method _action_compute_lines in order to compute the production lines and determine from them the production type.
      
      The thing is, the method _action_compute_lines, despite the fact it returns the lines of the production, actually creates the lines. So, just to test if the production was of product type, the productin lines were created, in database.
      
      This rev. introduces a _prepare_lines method, which returns the computed production lines, without actually creating them in database, so the test_if_product method can test if the production is of product type without creating the production lines.
      
      Therefore, production lines are now computed and created during the action_compute method, instead of computing them when the production was tested to get the production type.
      
      Computing the lines before the action_compute has as side effect to not set the scheduled date of the work orders in module mrp_operations, at MO confirmation (as, on confirmation, the action_compute method is called only for productions for which the lines are not yet computed, and mrp_operations overide action_compute to set the scheduled date)
      
      opw-620189
      30a7bea0
Loading