[Fix]purchase_requisition: set the state name
bzr revid: sbh@tinyerp.com-20100428072852-elcecv2uxjbxlnxv
This commit is contained in:
@@ -122,7 +122,7 @@ class purchase_order(osv.osv):
|
||||
if order.id<>po.id:
|
||||
wf_service = netsvc.LocalService("workflow")
|
||||
wf_service.trg_validate(uid, 'purchase.order', order.id, 'purchase_cancel', cr)
|
||||
self.pool.get('purchase.requisition').write(cr, uid, [po.requisition_id.id], {'state':'close','date_end':time.strftime('%Y-%m-%d %H:%M:%S')})
|
||||
self.pool.get('purchase.requisition').write(cr, uid, [po.requisition_id.id], {'state':'done','date_end':time.strftime('%Y-%m-%d %H:%M:%S')})
|
||||
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user