[FIX] payment: onchange partner
- Go in Accounting > Sales > Payment - Fill the mandatory info, and create a "Payment Transaction" - On the form view, change the Partner - The Customer Details are empty, and saving is not possible since the country (mandatory) is not filled in Closes #15708 opw-771753
This commit is contained in:
@@ -446,7 +446,7 @@ class PaymentTransaction(models.Model):
|
||||
@api.onchange('partner_id')
|
||||
def _onchange_partner_id(self):
|
||||
onchange_vals = self.on_change_partner_id(self.partner_id.id).get('value', {})
|
||||
self.write(onchange_vals)
|
||||
self.update(onchange_vals)
|
||||
|
||||
@api.multi
|
||||
def on_change_partner_id(self, partner_id):
|
||||
|
||||
Reference in New Issue
Block a user