Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
3806 Zobrazení

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?

Avatar
Zrušit
Nejlepší odpověď

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.

Avatar
Zrušit

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

Autor Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 19
3476
2
zář 25
246
4
zář 25
343
3
zář 25
360
3
zář 25
442