diff options
| author | Simon Lejeune <sle@openerp.com> | 2014-03-20 16:42:26 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2014-03-20 16:42:26 +0100 |
| commit | b6bd0e8b8a2193b156eecceff53e39a908ed761e (patch) | |
| tree | 06a660362f8bd40783c628e22c6d53bf876b7fb0 | |
| parent | d941bce0766c9ed2ca68a31b4da2abd106937022 (diff) | |
[FIX] fix the print purchase button
bzr revid: sle@openerp.com-20140320154226-tpx3d8a0xrmuxwrr
| -rw-r--r-- | addons/purchase/purchase.py | 7 |
1 files changed, 1 insertions, 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): |
