[FIX] point_of_sale: recompute reward after pricelist change
Current behavior: In the PoS if you apply a coupon on an order that contains 2 products with different taxes, it will create 2 discount lines on the order. If you change the pricelist, the discount lines won't have the correct values. Steps to reproduce: - Create 2 different products with different taxes. - Create a pricelist with a discount on the 2 products. - Create a coupon that apply a 100% discount on the order. - Start a PoS session - Add the 2 products to the order and apply the coupon. - The order total is now 0€. - Change the pricelist to the one with the discount. - The order total is different than 0€. opw-3049098 closes odoo/odoo#106612 X-original-commit: 2f29ca9311bd5c63e9419069088ce1475a124005 Signed-off-by:Trinh Jacky (trj) <trj@odoo.com> Signed-off-by:
Engels Robin (roen) <roen@odoo.com>
Showing
- addons/point_of_sale/static/tests/tours/helpers/ProductScreenTourMethods.js 11 additions, 0 deletions...le/static/tests/tours/helpers/ProductScreenTourMethods.js
- addons/pos_loyalty/static/src/js/Loyalty.js 5 additions, 1 deletionaddons/pos_loyalty/static/src/js/Loyalty.js
- addons/pos_loyalty/static/src/tours/PosLoyaltyTour.js 17 additions, 0 deletionsaddons/pos_loyalty/static/src/tours/PosLoyaltyTour.js
- addons/pos_loyalty/tests/test_frontend.py 89 additions, 0 deletionsaddons/pos_loyalty/tests/test_frontend.py
Loading
Please register or sign in to comment