Merge PR #1969 into 16.0

Signed-off-by rousseldenis
This commit is contained in:
OCA-git-bot
2024-03-25 07:49:30 +00:00
2 changed files with 7 additions and 1 deletions

View File

@@ -206,6 +206,12 @@ class TestMoveLocation(TestsCommon):
self.assertEqual(
putaway_line.destination_location_id, self.internal_loc_2_shelf
)
picking_action = wizard.action_move_location()
picking = self.env["stock.picking"].browse(picking_action["res_id"])
move_lines = picking.move_line_ids.filtered(
lambda sml: sml.product_id == self.product_no_lots
)
self.assertEqual(move_lines.location_dest_id, self.internal_loc_2_shelf)
def test_delivery_order_assignation_after_transfer(self):
"""

View File

@@ -98,7 +98,7 @@ class StockMoveLocationWizardLine(models.TransientModel):
self.ensure_one()
location_dest_id = (
self.move_location_wizard_id.apply_putaway_strategy
and self.destination_location_id.get_putaway_strategy(self.product_id).id
and self.destination_location_id._get_putaway_strategy(self.product_id).id
or self.destination_location_id.id
)
qty_todo, qty_done = self._get_available_quantity()