Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
3d7d5452 by Cédric Krier at 2023-01-08T17:51:20+01:00
Fallback to 0 when price list is not setting price ratio of components

Closes #11947
- - - - -


1 changed file:

- modules/product_kit/common.py


Changes:

=====================================
modules/product_kit/common.py
=====================================
@@ -293,7 +293,7 @@
             for component in components:
                 product = component.product
                 list_price = Uom.compute_price(
-                    product.default_uom, product.list_price,
+                    product.default_uom, product.list_price_used or 0,
                     component.unit)
                 if component.fixed:
                     list_price *= Decimal(str(component.quantity / quantity))



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/3d7d5452040338cd6c9bec7fc3cde91c4e1f9585

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/3d7d5452040338cd6c9bec7fc3cde91c4e1f9585
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to