[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:
david.leach@logicsupply.com
2014-03-21 11:24:12 +05:30
committed by Amit Dodiya
parent 9bf6f0310e
commit d73baf5d1d
+2 -1
View File
@@ -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: