Hello ,
I want to edit the purchase order name in function to the partner name
I inherited create method and it works just for the first time when creating the PO
I tested with onchange but it works just before clicking on Save button
This is my onchange method
@api.onchange('partner_id')
def change_code_purchase_order(self):
self.name = self.partner_id.name
Does anyone know how to fix it ?