Use incoming moves in internal shipment when check cancel UL moves.
This commit refs #27246
This commit is contained in:
parent
bc4a7c119d
commit
2e5deeb8e7
|
@ -370,7 +370,7 @@ class ShipmentInternalDone2Cancel(metaclass=PoolMeta):
|
||||||
def _check_cancel_ul_moves(self):
|
def _check_cancel_ul_moves(self):
|
||||||
for unit_load in self.unit_loads:
|
for unit_load in self.unit_loads:
|
||||||
# get from_location from move due to can be a child of
|
# 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
|
if m.unit_load == unit_load
|
||||||
and m.product == unit_load.product]
|
and m.product == unit_load.product]
|
||||||
unit_load.check_to_move(
|
unit_load.check_to_move(
|
||||||
|
|
Loading…
Reference in New Issue