2010-09-16 11:39:52 +00:00
|
|
|
-
|
|
|
|
In order to test the PDF reports defined using report_instratat module, we print a Instratat Report
|
|
|
|
-
|
|
|
|
!python {model: account.invoice}: |
|
|
|
|
import netsvc, tools, os
|
|
|
|
(data, format) = netsvc.LocalService('report.account.invoice.intrastat').create(cr, uid, [ref('account.test_invoice_1')], {}, {})
|
|
|
|
if tools.config['test_report_directory']:
|
2010-09-17 06:28:37 +00:00
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'report_instratat-instrastat_report.'+format), 'wb+').write(data)
|