diff options
| author | Pierre Masereel <pim@odoo.com> | 2019-09-18 14:20:25 +0000 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2019-09-18 14:20:25 +0000 |
| commit | 11b23d37712e981fcbc9970527f4269d9bfce5c8 (patch) | |
| tree | 2d03a4ab6827ec65e58a7a46bddaad15beca0c5a /addons/pos_discount | |
| parent | ae2c10ec9973adfaf28844138805cbd1722cd1ae (diff) | |
[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>
Diffstat (limited to 'addons/pos_discount')
| -rw-r--r-- | addons/pos_discount/static/src/js/discount.js | 1 |
1 files changed, 1 insertions, 0 deletions
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, }, |
