跳至内容
菜单
此问题已终结
3 回复
3920 查看

Odoo v13

What is the Studio path to report the Sales Order Customer name onto the Manufacturing Order? 

I have found many solutions that suggest making it as such:

Product>Stock Move and so on however using any mapping through the stock move produces the Customer name of the first order with the product, not the current Sales Order customer to which the Manufacturing order is applicable. 

Any other suggestions?

形象
丢弃
最佳答案

Add a custom Many2One field in the Manufacturing Order model that directly links to the Sales Order model. This ensures the Manufacturing Order is tied to the correct Sales Order.

形象
丢弃

Create an automated action that updates this field based on the 'Source' field in the Manufacturing Order. For example, you could use a Python expression like record.env['sale.order'].search([('name', '=', record.origin)]) to fetch the correct Sales Order.

This post was last modified: 08-04-2025, 00:21 am by https://blockblastonline.com

编写者 最佳答案

Unfortunatly using the Procurement Group as the source did not bring forth any data. (product is MTO). Any othe suggestions?

形象
丢弃
最佳答案

Hi Julie

Product > Stock Move will show all stock moves for the produced product.

Instead, if you used Procurement Group > Sale Order > Customer you should be able to get the info you're after.

Note: This will only work if you're using an MTO route, so the sale order is directly creating the manufacturing order. If the manufacturing order was created from a reordering rule there won't be a connection between the SO and MO.

Cheers,
Jake

形象
丢弃
相关帖文 回复 查看 活动
1
12月 19
3612
1
9月 25
859
2
9月 25
456
2
9月 25
434
4
9月 25
543