Hi,
I would like to get the selected customer (partner_id) of sale.order from sale.order.line model, I haven't succeeded yet.
Here is my source code
@api.onchange('product_id')
def _compute_customer_code(self):
if self.product_id.id:
partner_id = self.browse(order_id).partner_id or 0
One more question, is there any way to check the onchange of partner_id of sale.order for updating the related value in sale.order.line?
Thank you for your help!