From 1d7441f04205143d592dc369a62608eb8ca18531 Mon Sep 17 00:00:00 2001 From: Martronic SA Date: Mon, 26 Nov 2018 15:53:17 +0100 Subject: [PATCH] avoid breaking inheritance --- account_banking_mandate/models/account_invoice.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/account_banking_mandate/models/account_invoice.py b/account_banking_mandate/models/account_invoice.py index 45c571f59..5b82b9707 100644 --- a/account_banking_mandate/models/account_invoice.py +++ b/account_banking_mandate/models/account_invoice.py @@ -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