From 0715a408e838548669f71d74bc45d3abc9cae0d5 Mon Sep 17 00:00:00 2001 From: Leonardo Pistone Date: Mon, 9 Feb 2015 11:30:51 +0100 Subject: [PATCH] [FIX] stock: propagate owner from pack to stock operation Using pack instead of picking for more precise tracking of the owner. Fixes #5165 --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 554dbcc1594..d5b4a6cf849 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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: