[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user