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