9 lines
439 B
YAML
9 lines
439 B
YAML
-
|
|
In order to test the PDF reports defined on a l10n_ch, we will print BVR Report
|
|
-
|
|
!python {model: account.invoice}: |
|
|
import netsvc, tools, os
|
|
(data, format) = netsvc.LocalService('webkitaccount.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_report.'+format), 'wb+').write(data)
|