From b6bd0e8b8a2193b156eecceff53e39a908ed761e Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Thu, 20 Mar 2014 16:42:26 +0100 Subject: [PATCH] [FIX] fix the print purchase button bzr revid: sle@openerp.com-20140320154226-tpx3d8a0xrmuxwrr --- addons/purchase/purchase.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index b47320b1e79..97a1b87cd07 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -446,12 +446,7 @@ class purchase_order(osv.osv): ''' assert len(ids) == 1, 'This option should only be used for a single id at a time' self.signal_send_rfq(cr, uid, ids) - datas = { - 'model': 'purchase.order', - 'ids': ids, - 'form': self.read(cr, uid, ids[0], context=context), - } - return {'type': 'ir.actions.report.xml', 'report_name': 'purchase.quotation', 'datas': datas, 'nodestroy': True} + return self.pool['report'].get_action(cr, uid, ids, 'purchase.report_purchasequotation', context=context) #TODO: implement messages system def wkf_confirm_order(self, cr, uid, ids, context=None):