[Fix]purchase_requisition: set the state name

bzr revid: sbh@tinyerp.com-20100428072852-elcecv2uxjbxlnxv
This commit is contained in:
sbh (Open ERP)
2010-04-28 12:58:52 +05:30
parent 8d2b067577
commit f10e9aeca2
@@ -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