[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
This commit is contained in:
Quentin (OpenERP) 2011-08-17 10:38:29 +02:00
parent 2a5e3c0712
commit d0024fbeca
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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()