mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #525 from Martronic-SA/patch-1
avoid breaking inheritance
This commit is contained in:
@@ -73,10 +73,12 @@ class AccountInvoice(models.Model):
|
||||
@api.onchange('partner_id', 'company_id')
|
||||
def _onchange_partner_id(self):
|
||||
"""Select by default the first valid mandate of the partner"""
|
||||
super(AccountInvoice, self)._onchange_partner_id()
|
||||
res = super(AccountInvoice, self)._onchange_partner_id()
|
||||
self.set_mandate()
|
||||
return res
|
||||
|
||||
@api.onchange('payment_mode_id')
|
||||
def payment_mode_id_change(self):
|
||||
super(AccountInvoice, self).payment_mode_id_change()
|
||||
res = super(AccountInvoice, self).payment_mode_id_change()
|
||||
self.set_mandate()
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user