[FIX] fix the print purchase button
bzr revid: sle@openerp.com-20140320154226-tpx3d8a0xrmuxwrr
This commit is contained in:
parent
d941bce076
commit
b6bd0e8b8a
|
@ -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'
|
assert len(ids) == 1, 'This option should only be used for a single id at a time'
|
||||||
self.signal_send_rfq(cr, uid, ids)
|
self.signal_send_rfq(cr, uid, ids)
|
||||||
datas = {
|
return self.pool['report'].get_action(cr, uid, ids, 'purchase.report_purchasequotation', context=context)
|
||||||
'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}
|
|
||||||
|
|
||||||
#TODO: implement messages system
|
#TODO: implement messages system
|
||||||
def wkf_confirm_order(self, cr, uid, ids, context=None):
|
def wkf_confirm_order(self, cr, uid, ids, context=None):
|
||||||
|
|
Loading…
Reference in New Issue