From 98aeaf06ed366ea79d7980ac85c8f32338849f66 Mon Sep 17 00:00:00 2001 From: "Anup (OpenERP)" Date: Fri, 17 Sep 2010 19:27:42 +0530 Subject: [PATCH] [FIX] l10n_fr : YML for report test corrected bzr revid: ach@tinyerp.com-20100917135742-fxmr6y1l990n49dl --- addons/l10n_fr/test/l10n_fr_report.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/addons/l10n_fr/test/l10n_fr_report.yml b/addons/l10n_fr/test/l10n_fr_report.yml index cfc4f659925..ddc95595175 100644 --- a/addons/l10n_fr/test/l10n_fr_report.yml +++ b/addons/l10n_fr/test/l10n_fr_report.yml @@ -1,26 +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}: + !record {model: account.fiscalyear, id: account_fiscalyear_01}: code: FY2011 company_id: base.main_company - date_start: '2011-01-01' - date_stop: '2011-12-31' - name: Fiscal Year 2011 + date_start: '2012-01-01' + date_stop: '2012-12-31' + name: Fiscal Year 2012 - - In order to test the PDF reports defined on a l10n_fr, we will print a account move line for l10n_fr + In order to test the PDF reports defined on a l10n_fr, we will print an Account Move Line Report 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')}}, {}) + (data, format) = netsvc.LocalService('report.l10n.fr.bilan').create(cr, uid, [], {'model':'account.move.line', 'form':{'fiscalyear_id': ref('account_fiscalyear_01')}}, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'l10n_fr-bilan.'+format), 'wb+').write(data) + file(os.path.join(tools.config['test_report_directory'], 'l10n_fr-bilan_report.'+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 + In order to test the PDF reports defined on a l10n_fr, we will print a Compute Resultant Report 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) + file(os.path.join(tools.config['test_report_directory'], 'l10n_fr-compute_resultant_report.'+format), 'wb+').write(data)