[stock] : Chained location: cancelling receptions doesn't cancel all stock moves

bzr revid: dhs@tinyerp.com-20130206104915-f54l890d06xxq9ks
This commit is contained in:
Dhruti Shastri 2013-02-06 16:19:15 +05:30
parent 3a2286bd78
commit 86503f5812
1 changed files with 1 additions and 1 deletions

View File

@ -2201,7 +2201,7 @@ class stock_move(osv.osv):
if move.picking_id:
pickings.add(move.picking_id.id)
if move.move_dest_id and move.move_dest_id.state == 'waiting':
self.write(cr, uid, [move.move_dest_id.id], {'state': 'assigned'})
self.write(cr, uid, [move.move_dest_id.id], {'state': 'confirmed'})
if context.get('call_unlink',False) and move.move_dest_id.picking_id:
wf_service = netsvc.LocalService("workflow")
wf_service.trg_write(uid, 'stock.picking', move.move_dest_id.picking_id.id, cr)