diff --git a/account.py b/account.py index 49bb23b242..31c7e7148e 100644 --- a/account.py +++ b/account.py @@ -255,6 +255,8 @@ class ShipmentCost(Workflow, ModelSQL, ModelView): shipment_cost=shipment_cost.rec_name, shipment=shipment.rec_name, other=other.rec_name)) + else: + break shipment_cost.allocate_cost() for company, c_shipment_costs in groupby( shipment_costs, key=lambda s: s.company):