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(