From ef537daedcb09e70ac4ae12fc5308206c02a6410 Mon Sep 17 00:00:00 2001 From: "JMA (OpenERP)" Date: Thu, 16 Sep 2010 17:09:52 +0530 Subject: [PATCH] [IMP] report_instratat : yml test report added bzr revid: jma@tinyerp.com-20100916113952-50dtf0kv7ce9g66r --- addons/report_intrastat/__openerp__.py | 1 + addons/report_intrastat/test/report_instratat_report.yml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 addons/report_intrastat/test/report_instratat_report.yml diff --git a/addons/report_intrastat/__openerp__.py b/addons/report_intrastat/__openerp__.py index 16860ef9b70..ca421627ff5 100644 --- a/addons/report_intrastat/__openerp__.py +++ b/addons/report_intrastat/__openerp__.py @@ -37,6 +37,7 @@ 'intrastat_report.xml' ], 'demo_xml': [], + 'test': ['report_instratat_report.yml'], 'installable': True, 'active': False, 'certificate': '0056982189085', diff --git a/addons/report_intrastat/test/report_instratat_report.yml b/addons/report_intrastat/test/report_instratat_report.yml new file mode 100644 index 00000000000..821ce528cfd --- /dev/null +++ b/addons/report_intrastat/test/report_instratat_report.yml @@ -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)