[IMP] sale_layout : yml test report added
bzr revid: jma@tinyerp.com-20100916121538-gd0h3if1gjsbrvj2
This commit is contained in:
parent
15549773ea
commit
1d6c6b4ffc
|
@ -40,6 +40,7 @@
|
|||
"sale_layout_view.xml",
|
||||
"sale_layout_report.xml",
|
||||
],
|
||||
"test" : ['sale_layout_report.yml'],
|
||||
"active": False,
|
||||
"installable": True
|
||||
}
|
||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue