From 2e5deeb8e775ad1dea391fa3a7a332c7cd7c87ab Mon Sep 17 00:00:00 2001 From: Sergio Morillo Date: Tue, 20 Jun 2023 00:03:21 +0200 Subject: [PATCH] Use incoming moves in internal shipment when check cancel UL moves. This commit refs #27246 --- shipment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shipment.py b/shipment.py index e9c95b9..ef20c0c 100644 --- a/shipment.py +++ b/shipment.py @@ -370,7 +370,7 @@ class ShipmentInternalDone2Cancel(metaclass=PoolMeta): def _check_cancel_ul_moves(self): for unit_load in self.unit_loads: # get from_location from move due to can be a child of - move, = [m for m in (self.outgoing_moves or self.moves) + move, = [m for m in (self.incoming_moves or self.moves) if m.unit_load == unit_load and m.product == unit_load.product] unit_load.check_to_move(