Use list price used to calculate the base price of sale discount

Closes #14288
(grafted from cab701fb5dede621ee59ccd5d0db29565fd67092)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2025-10-13 18:32:01 +02:00
1 parent 4b637a9135
commit 9d2a6198dd
1 file changed
+2 -2
+2 -2
View File
@@ -57,8 +57,8 @@ class Line(metaclass=PoolMeta):
def compute_base_price(self):
pool = Pool()
Uom = pool.get('product.uom')
if self.product and self.product.list_price is not None:
price = self.product.list_price
if (self.product
and (price := self.product.list_price_used) is not None):
if self.unit:
price = Uom.compute_price(
self.product.default_uom, price, self.unit)