From d0024fbecae587f90296ff9109de6486d13d91e3 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 17 Aug 2011 10:38:29 +0200 Subject: [PATCH] [FIX] account_invoice_l10nbe: fixed error on some yaml tests, due to false value not in selection of reference_type field bzr revid: qdp-launchpad@openerp.com-20110817083829-30nn49zk8x7d62q4 --- addons/account_invoice_l10nbe/invoice.py | 2 +- addons/account_invoice_l10nbe/partner.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/account_invoice_l10nbe/invoice.py b/addons/account_invoice_l10nbe/invoice.py index 6aea22376fc..b1db829eddf 100644 --- a/addons/account_invoice_l10nbe/invoice.py +++ b/addons/account_invoice_l10nbe/invoice.py @@ -80,7 +80,7 @@ class account_invoice(osv.osv): algorithm = 'random' reference = self.generate_bbacomm(cr, uid, ids, type, reference_type, algorithm, partner_id, '')['value']['reference'] res_update = { - 'reference_type': reference_type, + 'reference_type': reference_type or 'none', 'reference': reference, } result['value'].update(res_update) diff --git a/addons/account_invoice_l10nbe/partner.py b/addons/account_invoice_l10nbe/partner.py index 2794b81670c..194ae39ed86 100644 --- a/addons/account_invoice_l10nbe/partner.py +++ b/addons/account_invoice_l10nbe/partner.py @@ -45,4 +45,8 @@ class res_partner(osv.osv): ], 'Communication Algorithm', help='Select Algorithm to generate the Structured Communication on Outgoing Invoices.' ), } + + _default = { + 'out_inv_comm_type': 'none', + } res_partner()