Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3127 Vistas

hi, good day

I have configured in odoo 12 to generate production orders when marking  a sale, but now i want the name of the client to be copied to the production orders view.

I hope you can help me i have time wanting to do this.

now i have a relationship in this way.

sale_order_id =fields.Many2one('sale.order',string='Orden de venta')​

partner_id = fields.Many2one('res.partner',required='sale_order_id.partner_id',string='Customer')

thanks you.


Avatar
Descartar
Mejor respuesta

Try this:

partner_id = fields.Many2one('res.partner',related='sale_order_id.partner_id',string='Customer')
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
oct 22
3720
0
nov 23
2064
0
ene 22
2939
0
ene 22
2142
2
abr 20
7648