Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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
Buang
Jawaban Terbai

You set the operation in the BOM. 

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

Avatar
Buang
Penulis

@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".

Penulis Jawaban Terbai

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
Buang

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

Penulis

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

Penulis

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.

Penulis

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).

Penulis

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.

Post Terkait Replies Tampilan Aktivitas
MO from SO Diselesaikan
1
Okt 24
2194
2
Jul 25
363
2
Agu 24
4163
1
Mar 24
1917
0
Jul 23
4468