details: https://code.tryton.org/tryton/commit/d5ecae37f11d
branch: 6.0
user: Cédric Krier <[email protected]>
date: Mon Oct 13 18:32:01 2025 +0200
description:
Use list price used to calculate the base price of sale discount
Closes #14288
(grafted from cab701fb5dede621ee59ccd5d0db29565fd67092)
diffstat:
modules/sale_discount/sale.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r ac36937b30f9 -r d5ecae37f11d modules/sale_discount/sale.py
--- a/modules/sale_discount/sale.py Tue May 20 18:28:23 2025 +0200
+++ b/modules/sale_discount/sale.py Mon Oct 13 18:32:01 2025 +0200
@@ -61,7 +61,7 @@
pool = Pool()
Uom = pool.get('product.uom')
if self.product:
- price = self.product.list_price
+ price = self.product.list_price_used
if self.unit:
price = Uom.compute_price(
self.product.default_uom, price, self.unit)