[FIX] stock: propagate owner from pack to stock operation

Using pack instead of picking for more precise tracking of the owner.
Fixes #5165
This commit is contained in:
Leonardo Pistone 2015-02-09 11:30:51 +01:00 committed by Martin Trigaux
parent c67431f126
commit 0715a408e8
1 changed files with 1 additions and 1 deletions

View File

@ -1059,7 +1059,7 @@ class stock_picking(osv.osv):
'product_qty': 1.0,
'location_id': pack.location_id.id,
'location_dest_id': quants_suggested_locations[pack_quants[0]],
'owner_id': picking.owner_id.id,
'owner_id': pack.owner_id.id,
})
#remove the quants inside the package so that they are excluded from the rest of the computation
for quant in pack_quants: