← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 726836] Re: [5.0 and 6.0] location_id wrong in stock.picking 'IN'

 

Hello Sebastien,

Thanks for the detailed bug description and the proposed patch.
The behavior you describe can indeed be reproduced by following the steps you gave, and the patch you propose will certainly change it to the behavior you would prefer.

However, it's not so clear that this behavior is desired in all cases, because it causes alteration of source location of chained moves, which may have unexpected consequences, for example when locations are manually altered by a user.
We are analyzing the consequences to see if your patch (or a corrected version where force_assign is correctly called) can be safely applied. Otherwise, we could simply be consider that if you configure a pushed flow that alters your MTO flows, you need to configure other push/pull rules to correct the flows so that all stock levels are correct.

What is clear however, and might help you, is that when using Make-To-Order flows, it is almost always more appropriate to combine them with _pulled_ flows rather than _pushed_ flows. This is because MTO is itself a pulled flow.
In the example you described, you could perhaps get a more appropriate behavior by doing the following scenario:

1. Install stock_location module
2*. Open HDD1 product and go to "Logistics Flows" tab and add a new *PULLED* Flow with :
 - Name: HDD1 are obtained in Stock by pulling them from Shelf1
 - Destination location : Stock
 - Type of procurement: Move (we are getting them from another location)
 - Source Location: Shelf 1
 - Shipping type : Internal (the move from Shelf1 to Stock is Internal)
 - Procure Method: MTO (we want the goods to be ordered directly in Shelf1, not just wait until there is some)
 - Invoice status : Not Applicable
3. Go to "Information" tab" and change Procurement method to "Make to order"
4. Save product
5. Go to Warehouse/Configuration and delete the minimum stock rule for HDD1 in Stock (as it makes no sense in this example)
6. Create a new sale order with the product HDD1
7. Launch Schedulers "Compute Scheduler"
8. The Scheduler create a new purchase order for this product
9. Confirm purchase order and receipt this product "Incoming Shipments"
10. The destination location of this product is Shelf 1
11: Go to Warehouse/WH Management/Internal Moves and confirm the internal move from Shelf1 to Stock (which correctly pulls the HDD from Shelf1 into Stock, which is the location in your warehouse from where goods are supposed to be sent to customers)
12. The Delivery Order is now "Available" and the Source Location is "Stock" <= it's correct
13. Go to Warehouse/Reporting/Inventory Analysis and notice that stock levels are correct in Stock and Shelf1.

This requires the confirmation of one additional internal move, though.
Other configurations are possible as well.

In any case, we'll follow-up on this bug according to what our analysis gives, as explained above.
Any feedback from anyone on this topic is appreciated of course.

** Changed in: openobject-addons
       Status: New => Triaged

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/726836

Title:
  [5.0 and 6.0] location_id wrong in stock.picking 'IN'

Status in OpenERP Modules (addons):
  Triaged

Bug description:
  1. Install stock_location module
  2. Open HDD1 product and go to "Logistics Flows" tab and add a new "Pushed Flow" with :
   - Source location : Stock
   - Destination location : Shelf 1
   - Automatic move : Automatic No Step Added
   - Shipping type : Getting Goods
   - Invoice status : Not Applicable
  3. Go to "Information" tab" and change Procurement method to "Make to order"
  4. Save product
  5. Create a new sale order with the product HDD1
  6. Launch Schedulers "Compute Scheduler"
  7. The Scheduler create a new purchase order for this product
  8. Confirm purchase order and receipt this product "Incoming Shipments"
  9. The destination location or this product is Shelf 1
  10. The Delivery Order is now "Available" but the Source Destination is "Stock" <= it's wrong, the source must be "Shelf 1"

  Please find a patch for V6 and v5



References