Skip to Content
Menú
This question has been flagged
1 Respondre
3129 Vistes

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
Best Answer

Try this:

partner_id = fields.Many2one('res.partner',related='sale_order_id.partner_id',string='Customer')
Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’oct. 22
3722
0
de nov. 23
2065
0
de gen. 22
2940
0
de gen. 22
2144
2
d’abr. 20
7651