From 1271192199c4057e82f07ada43f0e76d7d8cfefb Mon Sep 17 00:00:00 2001 From: "Anup (OpenERP)" Date: Tue, 28 Sep 2010 17:22:10 +0530 Subject: [PATCH] [FIX] l10n_ch : YML test for report Corrected bzr revid: ach@tinyerp.com-20100928115210-3ch2gw511s06fzal --- addons/l10n_ch/test/l10n_ch_report.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/l10n_ch/test/l10n_ch_report.yml b/addons/l10n_ch/test/l10n_ch_report.yml index 49c058a4bc8..a8a976bc424 100644 --- a/addons/l10n_ch/test/l10n_ch_report.yml +++ b/addons/l10n_ch/test/l10n_ch_report.yml @@ -3,6 +3,8 @@ - !python {model: account.invoice}: | import netsvc, tools, os + run_str = 'cp ' + tools.config['addons_path'] + '/l10n_ch/report/ocrbb.ttf' + ' ' + '/tmp/ocrbb.ttf' + os.system(run_str) (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_report.'+format), 'wb+').write(data)