2010-09-17 06:06:32 +00:00
|
|
|
-
|
|
|
|
It is demo data for the account.tax.code
|
|
|
|
-
|
|
|
|
!record {model: account.tax.code, id: account_tax_code_id_r1}:
|
|
|
|
name: a
|
|
|
|
|
|
|
|
-
|
2010-09-17 13:46:28 +00:00
|
|
|
In order to test the PDF reports defined on a l10u_lu, we will print a VAT Report
|
2010-09-17 06:06:32 +00:00
|
|
|
-
|
|
|
|
!python {model: res.partner}: |
|
2013-02-09 06:29:29 +00:00
|
|
|
import os
|
2013-02-22 13:35:11 +00:00
|
|
|
import openerp.report
|
|
|
|
from openerp import tools
|
|
|
|
data, format = openerp.report.render_report(cr, uid, [], 'l10n_lu.tax.report.print', {'model':'ir.ui.menu', 'form':{'tax_code_id': ref('account_tax_code_id_r1'), 'period_id': ref('account.period_1')}}, {})
|
2010-10-19 12:08:05 +00:00
|
|
|
if tools.config['test_report_directory']:
|
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'l10n_lu-vat_report.'+format), 'wb+').write(data)
|
|
|
|
|
2010-10-19 09:07:55 +00:00
|
|
|
|