From e5a8d21a6094593ea598f22352189013fec11bfd Mon Sep 17 00:00:00 2001 From: Wolfgang Taferner Date: Thu, 2 Apr 2015 19:02:06 +0200 Subject: [PATCH] [FIX] Return picking moves do not match the return picking type and also do not have a warehouse set (which can be retrieved based on the picking_type in use) --- addons/stock/wizard/stock_return_picking.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/stock/wizard/stock_return_picking.py b/addons/stock/wizard/stock_return_picking.py index 97a1a4c5bd2..6da460d2f77 100644 --- a/addons/stock/wizard/stock_return_picking.py +++ b/addons/stock/wizard/stock_return_picking.py @@ -147,6 +147,8 @@ class stock_return_picking(osv.osv_memory): 'state': 'draft', 'location_id': move.location_dest_id.id, 'location_dest_id': move.location_id.id, + 'picking_type_id': pick_type_id, + 'warehouse_id': pick.picking_type_id.warehouse_id.id, 'origin_returned_move_id': move.id, 'procure_method': 'make_to_stock', 'restrict_lot_id': data_get.lot_id.id,