[IMP] report_instratat : yml test report added
bzr revid: jma@tinyerp.com-20100916113952-50dtf0kv7ce9g66r
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
'intrastat_report.xml'
|
||||
],
|
||||
'demo_xml': [],
|
||||
'test': ['report_instratat_report.yml'],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
'certificate': '0056982189085',
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
-
|
||||
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']:
|
||||
file(os.path.join(tools.config['test_report_directory'], 'report_instratat-instrastat report.'+format), 'wb+').write(data)
|
||||
Reference in New Issue
Block a user