From 55d67ce5e91c97159fe4020ee04cc0f265b8b3a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 31 Mar 2013 23:35:47 +0200 Subject: [PATCH] Fix difference split issue3101 review741003 (transplanted from c86514d3c5297ee51e25c358035357c0afab8d93) --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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