[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)
This commit is contained in:
Wolfgang Taferner 2015-04-02 19:02:06 +02:00 committed by Nicolas Martinelli
parent 5920fc6a91
commit e5a8d21a60
1 changed files with 2 additions and 0 deletions

View File

@ -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,