STOCK: fix to assigned picking with product consumable and call workflow
bzr revid: ced-084487b07d5baf3919bfbab47411363fe415cecf
This commit is contained in:
parent
ef7f4276e1
commit
fcb2e54132
|
@ -711,6 +711,7 @@ class stock_move(osv.osv):
|
|||
for move in self.browse(cr, uid, ids):
|
||||
if move.product_id.type == 'consu':
|
||||
done.append(move.id)
|
||||
pickings[move.picking_id.id] = 1
|
||||
continue
|
||||
if move.state in ('confirmed','waiting'):
|
||||
res = self.pool.get('stock.location')._product_reserve(cr, uid, [move.location_id.id], move.product_id.id, move.product_qty, {'uom': move.product_uom.id})
|
||||
|
@ -728,7 +729,6 @@ class stock_move(osv.osv):
|
|||
if done:
|
||||
count += len(done)
|
||||
self.write(cr, uid, done, {'state':'assigned'})
|
||||
done = []
|
||||
|
||||
if count:
|
||||
for pick_id in pickings:
|
||||
|
|
Loading…
Reference in New Issue