From e28e1a079f251c2c023d9781a554ea8e6b0eb32d Mon Sep 17 00:00:00 2001 From: roen-odoo Date: Mon, 28 Aug 2023 15:28:18 +0000 Subject: [PATCH] [FIX] point_of_sale: Show price without discount in receipt Current behavior: When a discount is applied to a product, the receipt shows the price with the discount applied as the base price. Steps to reproduce: - Open PoS - Add a product to the order - Apply a discount to the product with the numpad - Validate the order - Check the receipt, the base price of the product is the price with the discount applied. (https://github.com/odoo/odoo/assets/32939472/eb0998a7-70a1-432a-8909-868d9307c999) The price in red should be 70$ (the price without the 5% discount) opw-3463745 closes odoo/odoo#134045 X-original-commit: d6e4e7c566324de3ef9589b92cacd32d6c386465 Signed-off-by: Joseph Caburnay (jcb) Signed-off-by: Robin Engels (roen) --- .../static/src/app/screens/receipt_screen/receipt/receipt.xml | 2 +- addons/point_of_sale/static/src/app/store/models.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt/receipt.xml b/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt/receipt.xml index a547e696bf0..a95eecf9064 100644 --- a/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt/receipt.xml +++ b/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt/receipt.xml @@ -203,7 +203,7 @@ - + diff --git a/addons/point_of_sale/static/src/app/store/models.js b/addons/point_of_sale/static/src/app/store/models.js index 2f22d9ca699..a010113b0d4 100644 --- a/addons/point_of_sale/static/src/app/store/models.js +++ b/addons/point_of_sale/static/src/app/store/models.js @@ -819,6 +819,7 @@ export class Orderline extends PosModel { pack_lot_lines: this.get_lot_lines(), customer_note: this.get_customer_note(), taxed_lst_unit_price: this.get_taxed_lst_unit_price(), + unitDisplayPriceBeforeDiscount: this.getUnitDisplayPriceBeforeDiscount(), }; } generate_wrapped_product_name() {