Always return a Decimal for shipment cost

Other modules rely on having a Decimal to alter the cost.

issue11688
review437341004
This commit is contained in:
Cédric Krier committed 2022-09-14 19:15:48 +02:00
1 parent 6869fdfddf
commit 7be6f054aa
1 file changed
+2
+2
View File
@@ -140,6 +140,8 @@ class ShipmentCostMixin:
return Currency.compute(
self.cost_currency_used, self.cost_used,
self.company.currency, round=False)
else:
return Decimal(0)
class ShipmentOutCostMixin(ShipmentCostMixin):