From da15c3a69a71662f78a769c552a06188ef2cae6e Mon Sep 17 00:00:00 2001 From: Thomas Binsfeld Date: Wed, 10 Oct 2018 14:19:52 +0200 Subject: [PATCH] [FIX] l10n_be_invoice_bba: vendor bill copy --- addons/l10n_be_invoice_bba/models/account_invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/l10n_be_invoice_bba/models/account_invoice.py b/addons/l10n_be_invoice_bba/models/account_invoice.py index 1cad1081a65..63290a9764f 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.reference_type == 'bba': + default['reference_type'] = 'none' return super(AccountInvoice, self).copy(default)