From dc6e7ca25ba4f1b5b6ce9c1857527e14ff919e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 3 Nov 2016 12:39:09 +0100 Subject: [PATCH] [FIX] l10n_be_invoice_bba: remove old on_change and add missing term in onchange --- addons/l10n_be_invoice_bba/models/account_invoice.py | 2 +- addons/l10n_be_invoice_bba/views/account_invoice_view.xml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/l10n_be_invoice_bba/models/account_invoice.py b/addons/l10n_be_invoice_bba/models/account_invoice.py index 68bad8964b3..e82f2e9a20b 100644 --- a/addons/l10n_be_invoice_bba/models/account_invoice.py +++ b/addons/l10n_be_invoice_bba/models/account_invoice.py @@ -48,7 +48,7 @@ class AccountInvoice(models.Model): if mod == int(bbacomm[-2:]): return True - @api.onchange('partner_id') + @api.onchange('partner_id', 'type') def _onchange_partner_id(self): result = super(AccountInvoice, self)._onchange_partner_id() reference = False diff --git a/addons/l10n_be_invoice_bba/views/account_invoice_view.xml b/addons/l10n_be_invoice_bba/views/account_invoice_view.xml index 3c4bdc0af8c..9ab348940a1 100644 --- a/addons/l10n_be_invoice_bba/views/account_invoice_view.xml +++ b/addons/l10n_be_invoice_bba/views/account_invoice_view.xml @@ -7,8 +7,7 @@ - +