[IMP] sale : yml test for report added

bzr revid: jma@tinyerp.com-20100915123715-trcmdqutp9i34tcw
This commit is contained in:
JMA (OpenERP) 2010-09-15 18:07:15 +05:30
parent 59d97f99ff
commit f27fd64c9b
2 changed files with 9 additions and 0 deletions

View File

@ -80,6 +80,7 @@
'test/invoice_on_ordered_qty.yml',
'test/invoice_on_shipped_qty.yml',
'test/sale_order_print.yml',
'test/sale_report.yml',
],
'installable': True,
'active': False,

View File

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