[FIX] stock: while cancelling purcahse order created from procurement it availables the related internal stock move which should not and also not triggering the workflow method
bzr revid: ado@tinyerp.com-20140321055412-30i0ifkj8wnzmaer
This commit is contained in:
committed by
Amit Dodiya
parent
9bf6f0310e
commit
d73baf5d1d
@@ -441,7 +441,8 @@ class procurement_order(osv.osv):
|
||||
if len(to_cancel):
|
||||
move_obj.action_cancel(cr, uid, to_cancel)
|
||||
if len(to_assign):
|
||||
move_obj.write(cr, uid, to_assign, {'state': 'assigned'})
|
||||
move_obj.write(cr, uid, to_assign, {'state': 'confirmed'})
|
||||
move_obj.action_assign(cr, uid, to_assign)
|
||||
self.write(cr, uid, ids, {'state': 'cancel'})
|
||||
wf_service = netsvc.LocalService("workflow")
|
||||
for id in ids:
|
||||
|
||||
Reference in New Issue
Block a user