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

Closes #13213
(grafted from 8ddf3a565d40d501105f1bc05188a7ccdccd57c4)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2024-05-10 15:17:37 +02:00
1 parent 92365f83df
commit 069c8fc9af
1 file changed
+1 -1
+1 -1
View File
@@ -174,7 +174,7 @@ class Product(metaclass=PoolMeta):
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: