details: https://code.tryton.org/tryton/commit/253fe0bd76cf
branch: 7.6
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 1034af851927 -r 253fe0bd76cf modules/sale_point/sale.py
--- a/modules/sale_point/sale.py Thu Jul 31 23:47:59 2025 +0200
+++ b/modules/sale_point/sale.py Fri Oct 17 17:27:27 2025 +0200
@@ -549,8 +549,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)