Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
2265 Lượt xem

where can i find code 

create mo from sale order

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

Hi MAHMOUD AMEN,

You can find the code for creating MO from sale order in the 'stock.rule' model '_run_manufacture()' method.

Also, you can create MO from the sale order below steps:

Step 1:
-> Unarchive the route 'Replenish on Order (MTO)'
-> Set the route 'Replenish on Order (MTO)' and 'Manufacture' in the product inventory tab.

Step 2:

-> Create new sale order with the product route set with 'Replenish on Order (MTO)' and 'Manufacture'.
-> Then click on the 'confirm' button and the MO order is created using the sale order.

Hope this answer helps you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

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

No need to code...

active route MTO that is archive in setting just active it and set route MTO and manufacturing on product level and stock level rule.

that will automatically trigger rule when you confirm sale order



Regards

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

i want make related fields in so to an mo 

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