Skip to Content
Menu
This question has been flagged
2 Replies
568 Views

Hi all!


I am encountering an issue with 2-step MO in Odoo 17.


By default, when you chose this option, it creates a location WH/Pre-Production where the components are sent when we pick them and before we manufacture a product.


It seems that Odoo uses every locations under WH to compute the stock (on product form or even forecasted report). 

Our manufacture process takes some time so we need to remove the picked product from the stock calculation.


One way could be to change the logic of the forecasted view and force the context of the products to compute quantities in WH/Stock location, but it seemed moving the Pre-Production location is easier.


However, when the Pre-Production location is not child of WH (we tried Physical and Virtual Locations), movements are not propagated and pick components never created.


Changing the parent of Pre-Production is the only modification we made.


What surprised us is that applying this logic to 2-step Outgoing Shipments works as expected. When confirming a Sale Order, a PC and an OUT pickings are created. When moving products from WH/Stock to Physical Locations/Output, the product disapear from forecasted report and quantities displayed in Product form.


After a first look, I don't find logic that the 2-step MO works with WH/Pre-Production. Is this a bug or am I missing something in the way Odoo should work?

Avatar
Discard
Author Best Answer

After further analysis, I found out that when the Pre-Production is not children of WH, it is not considered as part of the warehouse even if it is filled as the pbm_loc_id in the stock.warehouse record.

Without being in the warehouse, Odoo fails to retrieve the rule to transfer products from stock to pre-production to production.

One solution I found is to force the warehouse inside the stock.move under a MO.

Avatar
Discard
Best Answer

Hi Femaag, I'm thinking I have a similar problem but I'm not able to "force" the warehouse inside the model of stock.move, do you mind developing that idea further?

Avatar
Discard
Author

Hey Jozzepi,

I used a custom module for sure, but I don't quite remember the exact process.

However, I figured out it was a bad idea. A lot of stuff (like the forecasted report or replenishment) broke when I moved the Pre-production outside of WH.

I went back to a solution I refer to in my first post: Update places where the stock is displayed to count only stock in WH/Stock. And tweak the forecast report a bit to distinguish stock in WH/Stock and stock in WH/Pre-Production.

Related Posts Replies Views Activity
3
Feb 24
744
1
Dec 20
4401
1
Sep 24
140
3
Jul 24
769
3
May 24
312