Fallback to 0 when price list is not setting price ratio of components

Closes #11947
This commit is contained in:
Cédric Krier
2023-01-08 17:51:20 +01:00
parent 4cd5308ef3
commit 83d8ff7547
+1 -1
View File
@@ -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))