Use incoming moves in internal shipment when check cancel UL moves.

This commit refs #27246
This commit is contained in:
Sergio Morillo 2023-06-20 00:03:21 +02:00
parent bc4a7c119d
commit 2e5deeb8e7
1 changed files with 1 additions and 1 deletions

View File

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