[FIX]: syntax error in coding purchase requisition

lp bug: https://launchpad.net/bugs/724891 fixed

bzr revid: ksa@tinyerp.co.in-20110225114003-prpmhgfxoqyr39u2
This commit is contained in:
ksa (Open ERP) 2011-02-25 17:10:03 +05:30
parent adcd9eaa27
commit 00423cf396
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class purchase_order(osv.osv):
if order.id<>po.id:
proc_ids = proc_obj.search(cr, uid, [('purchase_id', '=', order.id)])
if proc_ids and po.state=='confirmed':
proc_obj.wirte(cr,uid,proc_ids,{'purchase_id':po.id})
proc_obj.write(cr, uid, proc_ids, {'purchase_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':'done','date_end':time.strftime('%Y-%m-%d %H:%M:%S')})