From d9bbe86184cb969ff43bc3aabb11abb88b294505 Mon Sep 17 00:00:00 2001 From: rhe-odoo Date: Wed, 16 Mar 2022 11:06:30 +0000 Subject: [PATCH] [FIX] point_of_sale: Fix refund lst price change When we were doing a price modification on a product and this orderline was refund, the displayed price on the product screen was changed to the new value. Example: - Default price: 33 - Paying with a price set to: 2 The order is refund: - Product price is set to 2 It should only be 2 on the order refunded. The fix doesn't change the price of the product after a refund anymore. closes odoo/odoo#86627 X-original-commit: 6251289360bd0188f63ac0b0537cefae5ac29de3 Signed-off-by: Masereel Pierre --- .../static/src/js/Screens/TicketScreen/TicketScreen.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/Screens/TicketScreen/TicketScreen.js b/addons/point_of_sale/static/src/js/Screens/TicketScreen/TicketScreen.js index 231f4bbd54e..4929e1a302a 100644 --- a/addons/point_of_sale/static/src/js/Screens/TicketScreen/TicketScreen.js +++ b/addons/point_of_sale/static/src/js/Screens/TicketScreen/TicketScreen.js @@ -224,7 +224,6 @@ odoo.define('point_of_sale.TicketScreen', function (require) { await destinationOrder.add_product(this.env.pos.db.get_product_by_id(orderline.productId), { quantity: -qty, price: orderline.price, - lst_price: orderline.price, extras: { price_manually_set: true }, merge: false, refunded_orderline_id: orderline.id,