From 204684bb7006aa8b40dfacc656c596e56c257c1a Mon Sep 17 00:00:00 2001 From: Andrea Stirpe Date: Tue, 22 Aug 2017 10:26:29 +0200 Subject: [PATCH] [FIX][10.0] account_banking_mandate: onchange return value missing (#382) --- 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 553c4f7dfde7..7bb7a3f0d1c4 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': '10.0.1.1.0', + 'version': '10.0.1.1.1', '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 7c086d9f936b..7adb49f107a8 100644 --- a/account_banking_mandate/models/account_invoice.py +++ b/account_banking_mandate/models/account_invoice.py @@ -65,7 +65,7 @@ def _prepare_refund( @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() if ( self.type == 'out_invoice' and self.partner_id.customer_payment_mode_id. @@ -81,6 +81,7 @@ def _onchange_partner_id(self): self.mandate_id = mandates[0] else: self.mandate_id = False + return res @api.onchange('payment_mode_id') def payment_mode_id_change(self):