[12.0][IMP] stock_move_location: Applies put away strategy

This commit is contained in:
Joan Sisquella
2019-11-07 11:22:16 +01:00
committed by João Marques
parent 7222cafdfc
commit 88d7bcc183

View File

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