[FIX] l10n_lu : YML for report test corrected
bzr revid: ach@tinyerp.com-20100917134628-abi9hv1ffqwpj65h
This commit is contained in:
parent
7298e8599d
commit
a056d7e325
|
@ -5,10 +5,10 @@
|
|||
name: a
|
||||
|
||||
-
|
||||
In order to test the PDF reports defined on a l10u_lu, we will print a vat
|
||||
In order to test the PDF reports defined on a l10u_lu, we will print a VAT Report
|
||||
-
|
||||
!python {model: res.partner}: |
|
||||
import netsvc, tools, os
|
||||
(data, format) = netsvc.LocalService('report.l10n_lu.tax.report.print').create(cr, uid, [], {'model':'ir.ui.menu', 'form':{'tax_code_id': ref('account_tax_code_id_r1'), 'period_id': ref('account.period_1')}}, {})
|
||||
if tools.config['test_report_directory']:
|
||||
file(os.path.join(tools.config['test_report_directory'], 'l10n_lu-vat.'+format), 'wb+').write(data)
|
||||
file(os.path.join(tools.config['test_report_directory'], 'l10n_lu-vat_report.'+format), 'wb+').write(data)
|
||||
|
|
Loading…
Reference in New Issue