[REV] purchase: re-establish a call to netsvc.LocalService to make sure it still works.

bzr revid: vmt@openerp.com-20130225133423-8wj7fg4n56o0v3w7
This commit is contained in:
Vo Minh Thu
2013-02-25 14:34:23 +01:00
parent 9bb5ee90e4
commit 64a35f6859
+2 -3
View File
@@ -13,8 +13,7 @@
-
!python {model: purchase.order}: |
import os
import openerp.report
from openerp import tools
data, format = openerp.report.render_report(cr, uid, [ref('purchase.purchase_order_1'),ref('purchase.purchase_order_2')], 'purchase.order', {}, {})
from openerp import netsvc, tools
(data, format) = netsvc.LocalService('report.purchase.order').create(cr, uid, [ref('purchase.purchase_order_1'),ref('purchase.purchase_order_2')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'purchase-purchase_order_report'+format), 'wb+').write(data)