From 88d7bcc183e189ca86f94af4c5333cfcd9a46189 Mon Sep 17 00:00:00 2001 From: Joan Sisquella Date: Thu, 7 Nov 2019 11:22:16 +0100 Subject: [PATCH] [12.0][IMP] stock_move_location: Applies put away strategy --- stock_move_location/wizard/stock_move_location_line.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stock_move_location/wizard/stock_move_location_line.py b/stock_move_location/wizard/stock_move_location_line.py index efa68b3fe..e05c0ae00 100644 --- a/stock_move_location/wizard/stock_move_location_line.py +++ b/stock_move_location/wizard/stock_move_location_line.py @@ -93,11 +93,13 @@ class StockMoveLocationWizardLine(models.TransientModel): @api.multi def _get_move_line_values(self, picking, move): self.ensure_one() + location_dest_id = self.destination_location_id.get_putaway_strategy( + self.product_id).id or self.destination_location_id.id return { "product_id": self.product_id.id, "lot_id": self.lot_id.id, "location_id": self.origin_location_id.id, - "location_dest_id": self.destination_location_id.id, + "location_dest_id": location_dest_id, "qty_done": self._get_available_quantity(), "product_uom_id": self.product_uom_id.id, "picking_id": picking.id,