Skip to Content
Menu
This question has been flagged

Hello,


When I create a new manufacturing order of BoM product, i want to set default specific "Operation Type" depending on product (or product category) I mean not the default San Francisco: Manufacturing which is consuming raw materials from WH/Stock.

Eg: 

- Product: Foobar wood product

- BoM: Foobar wood product

- Operation type (defaults to): Wood WH: Manufacturing

=> So the raw materials and finished product will be WOOD/Stock by default.


I don't find how to achieve this. Is this doable via route rules or I need to override a model ?


Regards

Avatar
Discard
Best Answer

You set the operation in the BOM. 

https://www.odoo.com/documentation/16.0/applications/inventory_and_mrp/manufacturing/management/bill_configuration.html

Avatar
Discard
Author

@Jaideep : multiple warehouses and one step manufacturing on all warehouses
I have set the route manufacturing as the first one, doesn't change anything :
(can't insert screenshots)
1) Manufacture
2) Buy
3) Wood : 1 step receive
4) Wood : 1 step shipping

Also the product of the BoM has only route "Manufacture".

Author Best Answer

Thank you Lars, it choose the good Operation Type by default.

But if I set an operation on the BoM, when I choose the product on the MO, the BoM isn't anymore selected by default. Why ?


Avatar
Discard

possible explanation for this scenario/ behavior, quoting @Andrea Martinez (amt) verbatim from the below post

https://www.odoo.com/forum/help-1/can-i-manage-both-2-step-manufacture-store-and-3-step-pick-manufacture-store-manufacturing-in-odoo-204399

>>>> The reason this is not automatically done by Odoo is that the first rule set on the Manufacture route uses the operation type "Manufacturing". Therefore, when the route is triggered, it uses this rule and this operation type to create the manufacturing order. Since the BOM uses a different operation type, it is not pulled into the MO and does not trigger the transfer needed for the 2-stpe manufacturing process.<<<<

In your business case, do you have multiple routes or multiple warehouses? From your question it seems like the operation type selected on MO wasn't your referred one

Author

I have found the solution : In inventory => Operations Types => I have set Manufacturing / Wood WH before the Manufacturing / San Francisco WH

Author

In the doubt, I have created another product / BoM in San Francisco WH, with Operation Type : "San Francisco: Manufacturing" : the same behavior happens when creating a MO : no default BoM selected :(

Thanks for confirming. This validates the rationale provided in the post, that if the operation type on BOM is different from the 1st rule with operation type manufacture in the DB then the product BOM field on MO needs to be selected manually.

I guess in your use case you were able to change the operation sequence of the manufacturing routes so the preferred operation is chosen first.

Author

The workaround for the MO form, is to override the bom_id field to be required=True.

But I'm still investigating, because I tried a MTO rule and the MO is automatically created without BoM selected (exactly like manually).

Author

My bad : the SO was created using wrong WH. If I set the good WH on the SO, the MO created by the MTO has the good BoM.

Related Posts Replies Views Activity
1
Oct 24
1135
2
Aug 24
1577
1
Mar 24
446
0
Jul 23
3436
2
Jun 21
1766