[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:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user