[IMP] sale_layout : yml test report added

bzr revid: jma@tinyerp.com-20100916121538-gd0h3if1gjsbrvj2
This commit is contained in:
JMA (OpenERP) 2010-09-16 17:45:38 +05:30
parent 15549773ea
commit 1d6c6b4ffc
2 changed files with 9 additions and 0 deletions

View File

@ -40,6 +40,7 @@
"sale_layout_view.xml",
"sale_layout_report.xml",
],
"test" : ['sale_layout_report.yml'],
"active": False,
"installable": True
}

View File

@ -0,0 +1,8 @@
-
In order to test the PDF reports defined on Sale, we will print a Sale Layout report.
-
!python {model: sale.order}: |
import netsvc, tools, os
(data, format) = netsvc.LocalService('report.sale.order.layout').create(cr, uid, [ref('sale.order')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'sale_layout-sale layout report'+format), 'wb+').write(data)