mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_banking_mandate: _onchange_partner_id missing return (#451)
This commit is contained in:
committed by
Stefan Rijnhart
parent
3f83231b43
commit
d56b84583e
@@ -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, "
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user