[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 <pimodoo@users.noreply.github.com>
This commit is contained in:
Pierre Masereel
2019-09-18 14:20:25 +00:00
parent ae2c10ec99
commit 11b23d3771
@@ -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,
},