From ece062ecf4ab9317619bb6b36c1cdf6d7784674c Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Sat, 13 Apr 2024 19:13:44 +0200 Subject: [PATCH] Allocate also shipment cost of 0 Closes #13155 (grafted from 9a2d0edb8d8b3903e47b74bc339ba4d2ec6df097) --HG-- branch : 7.0 --- modules/stock_shipment_cost/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/stock_shipment_cost/stock.py b/modules/stock_shipment_cost/stock.py index bffa53dadf..eba0c8182b 100644 --- a/modules/stock_shipment_cost/stock.py +++ b/modules/stock_shipment_cost/stock.py @@ -185,7 +185,7 @@ class ShipmentOutCostMixin(ShipmentCostMixin): moves = [] for shipment in shipments: cost = shipment._get_shipment_cost() - if not cost: + if cost is None: continue factors = getattr(shipment, '_get_allocation_shipment_cost_factors_by_%s' %