[FIX] sale : YML test for report corrected
bzr revid: ach@tinyerp.com-20100917061318-h7stdwp2mkgr5vqm
This commit is contained in:
@@ -79,7 +79,6 @@
|
||||
'test/sale_procurement.yml',
|
||||
'test/invoice_on_ordered_qty.yml',
|
||||
'test/invoice_on_shipped_qty.yml',
|
||||
'test/sale_order_print.yml',
|
||||
'test/sale_report.yml',
|
||||
],
|
||||
'installable': True,
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
-
|
||||
In order to test the PDF reports defined on a sale order, we will print a sale order
|
||||
-
|
||||
!python {model: sale.order}: |
|
||||
import netsvc, tools, os
|
||||
(data, format) = netsvc.LocalService('report.sale.order').create(cr, uid, [ref('sale.order'),ref('sale.order2')], {}, {})
|
||||
if tools.config['test_report_directory']:
|
||||
file(os.path.join(tools.config['test_report_directory'], 'sale-sale_order.'+format), 'wb+').write(data)
|
||||
-
|
||||
In order to test the PDF reports defined on a sale order, we will print a report for sale prepare allot
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user