From 4fdbee4582ecdfb5d638a951ee8f2ceacf690276 Mon Sep 17 00:00:00 2001 From: roen-odoo Date: Tue, 18 Jan 2022 14:11:53 +0000 Subject: [PATCH] [FIX] pos_gift_card : Setting customer reset price Current behavior: When creating a gift card in a PoS the price was reset to 0 when modifying the customer Steps to reproduce: - Set PoS gift card mode in Generate a new barcode and set a price - Modify the current customer - The price of the gift card is reset to 0 opw-2666917 closes odoo/odoo#83452 X-original-commit: ffc2e11e92a5b528fa2cda855ecdf1d83a54f4bb Signed-off-by: Masereel Pierre --- addons/pos_gift_card/static/src/js/GiftCardPopup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/pos_gift_card/static/src/js/GiftCardPopup.js b/addons/pos_gift_card/static/src/js/GiftCardPopup.js index 91d9116f087..e0a7ca19ee5 100644 --- a/addons/pos_gift_card/static/src/js/GiftCardPopup.js +++ b/addons/pos_gift_card/static/src/js/GiftCardPopup.js @@ -55,6 +55,7 @@ odoo.define("pos_gift_card.GiftCardPopup", function (require) { quantity: 1, merge: false, generated_gift_card_ids: giftCard ? giftCard.id : false, + extras: { price_manually_set: true }, }); } else { await this.showPopup('ErrorPopup', {