[FIX] l10n_ch : YML test for report Corrected

bzr revid: ach@tinyerp.com-20100928115210-3ch2gw511s06fzal
This commit is contained in:
Anup (OpenERP) 2010-09-28 17:22:10 +05:30
parent cd0685705f
commit 1271192199
1 changed files with 2 additions and 0 deletions

View File

@ -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)