summaryrefslogtreecommitdiff
path: root/addons/l10n_be_invoice_bba
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-10-03 17:12:38 +0200
committerChristophe Simonis <chs@odoo.com>2018-10-03 17:12:38 +0200
commitc43f35ee9dc7c0bb7cb6bcc06cbe9a26b80abcc1 (patch)
tree9bda2adfda33b364ce972907c90747058d9e88f5 /addons/l10n_be_invoice_bba
parente980af9df00ec25cbfbb07a37bc4dfe2088ed566 (diff)
parent45922f397ff7cc4640d010ff8282aae8b2fbafb1 (diff)
[MERGE] forward port branch 11.0 up to 45922f397ff
Diffstat (limited to 'addons/l10n_be_invoice_bba')
-rw-r--r--addons/l10n_be_invoice_bba/models/account_invoice.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/l10n_be_invoice_bba/models/account_invoice.py b/addons/l10n_be_invoice_bba/models/account_invoice.py
index d729efec3a3..49973c1c30e 100644
--- a/addons/l10n_be_invoice_bba/models/account_invoice.py
+++ b/addons/l10n_be_invoice_bba/models/account_invoice.py
@@ -182,4 +182,6 @@ class AccountInvoice(models.Model):
default['reference_type'] = reference_type
if reference_type == 'bba':
default['reference'] = self.generate_bbacomm(self.type, reference_type, self.partner_id.id, '')['value']['reference']
+ elif self.type in ['in_invoice']:
+ self.reference_type = 'none'
return super(AccountInvoice, self).copy(default)