Fixed bug when launching the assignment wizard without udcs on the shipment

This commit refs #27341


(cherry picked from commit dec5c352fe)
This commit is contained in:
jesusmr98 2023-08-03 08:40:55 +02:00 committed by Sergio Morillo
parent 2e5deeb8e7
commit 592ea82de5
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ class Assign(metaclass=PoolMeta):
__name__ = 'stock.shipment.assign'
def transition_start(self):
if hasattr(self.record, 'unit_loads'):
if getattr(self.record, 'unit_loads', None):
# if has unit loads, locations may not change
self.record.assign_force()
return 'end'