Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
de0b876c by Cédric Krier at 2023-03-13T22:44:43+01:00
Ensure price ratio is Decimal for product kit
When the ratio is computed based on number of components instead of price
list.
Closes #12135
- - - - -
1 changed file:
- modules/product_kit/common.py
Changes:
=====================================
modules/product_kit/common.py
=====================================
@@ -315,7 +315,7 @@
if sum_:
ratio = list_prices[component] / sum_
else:
- ratio = 1 / len(components)
+ ratio = Decimal(1) / len(components)
if component.fixed:
ratio /= Decimal(str(component.quantity / quantity))
else:
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/de0b876c414875b7f317b3531859d4b7ac25e8d5
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/de0b876c414875b7f317b3531859d4b7ac25e8d5
You're receiving this email because of your account on foss.heptapod.net.