diff --git a/addons/l10n_ch/test/l10n_ch_report.yml b/addons/l10n_ch/test/l10n_ch_report.yml new file mode 100644 index 00000000000..0379e6bc83b --- /dev/null +++ b/addons/l10n_ch/test/l10n_ch_report.yml @@ -0,0 +1,17 @@ +- + In order to test the PDF reports defined on a l10n_ch, we will print a bvr_report +- + !python {model: account.invoice}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.l10n_ch.bvr').create(cr, uid, [ref('account.test_invoice_1')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'l10ch-bvr_order.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a l10n_ch, we will print a bvr_invoice_report +- + !python {model: account.invoice}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.l10n_ch.invoice.bvr').create(cr, uid, [ref('account.test_invoice_1')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'l10ch-bvr_invoice.'+format), 'wb+').write(data) diff --git a/addons/l10n_fr/test/l10n_fr_report.yml b/addons/l10n_fr/test/l10n_fr_report.yml new file mode 100644 index 00000000000..cfc4f659925 --- /dev/null +++ b/addons/l10n_fr/test/l10n_fr_report.yml @@ -0,0 +1,26 @@ +- + In order to test Generate Fiscalyear Opening Entries wizard of OpenERP I first create a fiscalyear "Fiscal Year 2011" to which the entries will move +- + !record {model: account.fiscalyear, id: account_fiscalyear_0}: + code: FY2011 + company_id: base.main_company + date_start: '2011-01-01' + date_stop: '2011-12-31' + name: Fiscal Year 2011 +- + In order to test the PDF reports defined on a l10n_fr, we will print a account move line for l10n_fr +- + !python {model: account.move.line}: | + import netsvc, tools, os, time + (data, format) = netsvc.LocalService('report.l10n.fr.bilan').create(cr, uid, [], {'model':'account.move.line', 'form':{'fiscalyear_id': ref('account_fiscalyear_0')}}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'l10n_fr-bilan.'+format), 'wb+').write(data) + +- + In order to test the PDF reports defined on a l10n_fr, we will print a compute result for l10n_fr +- + !python {model: account.move.line}: | + import netsvc, tools, os,time + (data, format) = netsvc.LocalService('report.l10n.fr.compute_resultant').create(cr, uid, [], {'model':'account.move.line', 'form':{'fiscalyear_id': ref('account.data_fiscalyear')}}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'l10n_fr-compute_resultant.'+format), 'wb+').write(data) diff --git a/addons/l10n_lu/test/l10n_lu_report.yml b/addons/l10n_lu/test/l10n_lu_report.yml new file mode 100644 index 00000000000..0ea9850df9a --- /dev/null +++ b/addons/l10n_lu/test/l10n_lu_report.yml @@ -0,0 +1,14 @@ +- + 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 +- + !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)