diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2011-08-17 10:38:29 +0200 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2011-08-17 10:38:29 +0200 |
| commit | d0024fbecae587f90296ff9109de6486d13d91e3 (patch) | |
| tree | 6cbb5dbd9c37c8e6ea34c93a1c8eef68f263f2a1 | |
| parent | 2a5e3c0712ba8733027d33e2673cab8f2adb3ec8 (diff) | |
[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
| -rw-r--r-- | addons/account_invoice_l10nbe/invoice.py | 2 | ||||
| -rw-r--r-- | addons/account_invoice_l10nbe/partner.py | 4 |
2 files changed, 5 insertions, 1 deletions
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() |
