diff --git a/stock.py b/stock.py index 657f81c80e..6554d4b78b 100644 --- a/stock.py +++ b/stock.py @@ -138,7 +138,7 @@ class ShipmentIn(Model): move = cost['move'] quantity = Decimal(str(move.quantity)) if exp * quantity < difference: - cost['unit_shipment_cost'] = unit_shipment_cost + exp + cost['unit_shipment_cost'] += exp difference -= exp * quantity if difference < exp: break