19 lines
696 B
YAML
19 lines
696 B
YAML
-
|
|
It is demo data for the account.tax.code
|
|
-
|
|
!record {model: account.tax.code, id: account_tax_code_id_r1}:
|
|
name: a
|
|
|
|
-
|
|
In order to test the PDF reports defined on a l10u_lu, we will print a VAT Report
|
|
-
|
|
!python {model: res.partner}: |
|
|
import os
|
|
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')}}, {})
|
|
if tools.config['test_report_directory']:
|
|
file(os.path.join(tools.config['test_report_directory'], 'l10n_lu-vat_report.'+format), 'wb+').write(data)
|
|
|
|
|