[IMP] report_instratat : yml test report added

bzr revid: jma@tinyerp.com-20100916113952-50dtf0kv7ce9g66r
This commit is contained in:
JMA (OpenERP)
2010-09-16 17:09:52 +05:30
parent 4afe3947c4
commit ef537daedc
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -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)