[FIX] account_banking_mandate: _onchange_partner_id missing return (#451)

This commit is contained in:
Francisco Iván Antón Prieto
2018-02-20 19:31:43 +01:00
committed by Stefan Rijnhart
parent 3f83231b43
commit d56b84583e
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
{
'name': 'Account Banking Mandate',
'summary': 'Banking mandates',
'version': '11.0.1.1.0',
'version': '11.0.1.2.0',
'license': 'AGPL-3',
'author': "Compassion CH, "
"Tecnativa, "

View File

@@ -73,8 +73,9 @@ 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 _onchange_payment_mode_id(self):