Skip to content
Snippets Groups Projects
Commit 8ddf3a565d40 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Do not convert sale unit price to sale unit of measure if empty

Closes #13213
parent 277a922beb84
No related branches found
No related tags found
1 merge request!1455Do not convert sale unit price to sale unit of measure if empty
Pipeline #82015 passed
......@@ -178,7 +178,7 @@
if uom and product.default_uom.category == uom.category:
unit_price = Uom.compute_price(
product.default_uom, unit_price, uom)
else:
elif product.sale_uom:
unit_price = Uom.compute_price(
product.default_uom, unit_price, product.sale_uom)
if currency and company and unit_price is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment