avoid breaking inheritance

This commit is contained in:
Martronic SA
2018-11-26 15:53:17 +01:00
committed by GitHub
parent 9f681d9e60
commit 1d7441f042

View File

@@ -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