details: https://code.tryton.org/tryton/commit/b3b9e4b001c6
branch: 7.0
user: Cédric Krier <[email protected]>
date: Fri Oct 17 17:27:27 2025 +0200
description:
Use list price used to calculate unit list price on point of sale
(grafted from ec77abb4539525bcfd5a9402d8848791d9a096ad)
diffstat:
modules/sale_point/sale.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 3c617b318562 -r b3b9e4b001c6 modules/sale_point/sale.py
--- a/modules/sale_point/sale.py Sat Oct 25 12:24:26 2025 +0200
+++ b/modules/sale_point/sale.py Fri Oct 17 17:27:27 2025 +0200
@@ -542,8 +542,8 @@
self.unit_list_price = round_price(Tax.reverse_compute(
self.unit_gross_price, self.taxes,
date=self.sale.date))
- elif self.product.list_price is not None:
- self.unit_list_price = self.product.list_price
+ elif self.product.list_price_used is not None:
+ self.unit_list_price = self.product.list_price_used
taxes = Tax.compute(
self.taxes, self.unit_list_price, 1,
date=self.sale.date)