From 592ea82de54e6d72da620d3073e95ea32ac77449 Mon Sep 17 00:00:00 2001 From: jesusmr98 Date: Thu, 3 Aug 2023 08:40:55 +0200 Subject: [PATCH] Fixed bug when launching the assignment wizard without udcs on the shipment This commit refs #27341 (cherry picked from commit dec5c352fe2c2e8437de004a0e02928a13e03f67) --- shipment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shipment.py b/shipment.py index ef20c0c..890b949 100644 --- a/shipment.py +++ b/shipment.py @@ -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'