From 83d8ff7547b349e87c4c6c56d0e457dda423d243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 8 Jan 2023 17:51:20 +0100 Subject: [PATCH] Fallback to 0 when price list is not setting price ratio of components Closes #11947 --- modules/product_kit/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/product_kit/common.py b/modules/product_kit/common.py index 91e783d83e..08b3ff9921 100644 --- a/modules/product_kit/common.py +++ b/modules/product_kit/common.py @@ -293,7 +293,7 @@ def order_line_component_mixin(prefix): 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))