Skip to Content
Menu
This question has been flagged
1 Reply
2578 Views

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

Try this:

partner_id = fields.Many2one('res.partner',related='sale_order_id.partner_id',string='Customer')
Avatar
Discard
Related Posts Replies Views Activity
1
Oct 22
2354
0
Nov 23
985
0
Jan 22
1841
0
Jan 22
1504
2
Apr 20
6541