From 11b23d37712e981fcbc9970527f4269d9bfce5c8 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Wed, 18 Sep 2019 14:20:25 +0000 Subject: [PATCH] [FIX] pos_discount: don't show multiple prices When you add a discount, the price is changed on the product, and so when you have enabled options to display the discount, the product is shown as discounted. So we are modifying the lst_price too (like for tip) to avoid having differences between prices. closes odoo/odoo#37089 Signed-off-by: pimodoo --- addons/pos_discount/static/src/js/discount.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/pos_discount/static/src/js/discount.js b/addons/pos_discount/static/src/js/discount.js index 52612a7d0fb..438812d3505 100644 --- a/addons/pos_discount/static/src/js/discount.js +++ b/addons/pos_discount/static/src/js/discount.js @@ -73,6 +73,7 @@ var DiscountButton = screens.ActionButtonWidget.extend({ if( discount < 0 ){ order.add_product(product, { price: discount, + lst_price: discount, extras: { price_manually_set: true, },