Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You set the operation in the BOM. 

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả Câu trả lời hay nhất

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 ?


Ảnh đại diện
Huỷ bỏ

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

Tác giả

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

Tác giả

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.

Tác giả

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

Tác giả

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
MO from SO Đã xử lý
1
thg 10 24
2289
Multi layered BOMs Đã xử lý
2
thg 8 25
615
2
thg 8 24
4264
1
thg 3 24
1981
0
thg 7 23
4500