From d56b84583ee183fd906256ef32cbd9903ed09e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Iv=C3=A1n=20Ant=C3=B3n=20Prieto?= Date: Tue, 20 Feb 2018 19:31:43 +0100 Subject: [PATCH] [FIX] account_banking_mandate: _onchange_partner_id missing return (#451) --- account_banking_mandate/__manifest__.py | 2 +- account_banking_mandate/models/account_invoice.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/account_banking_mandate/__manifest__.py b/account_banking_mandate/__manifest__.py index b189b65d5..569277f04 100644 --- a/account_banking_mandate/__manifest__.py +++ b/account_banking_mandate/__manifest__.py @@ -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, " diff --git a/account_banking_mandate/models/account_invoice.py b/account_banking_mandate/models/account_invoice.py index 18184a769..6d67848dc 100644 --- a/account_banking_mandate/models/account_invoice.py +++ b/account_banking_mandate/models/account_invoice.py @@ -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):