Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
3680 Vistas

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
Descartar
Mejor respuesta

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
Descartar

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 Mejor respuesta

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

Avatar
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 19
3367
2
ago 25
584
0
jul 25
481
1
jul 25
913
1
jul 25
1316