From 4295c88f945fefb37662d462e60a3b5cc12ff5dc Mon Sep 17 00:00:00 2001 From: "David Monnom (moda)" Date: Wed, 16 Aug 2023 09:44:37 +0000 Subject: [PATCH] [FIX] pos_loyalty: wrong syntax for super call The call to super was wrong, it was called in the old way this._super(). This has now been corrected with the new method super().`function name`() closes odoo/odoo#132022 Signed-off-by: Adrien Guilliams (adgu) --- .../overrides/components/product_screen/product_screen.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/pos_loyalty/static/src/overrides/components/product_screen/product_screen.js b/addons/pos_loyalty/static/src/overrides/components/product_screen/product_screen.js index 7e8aad55433..cb9794b5b2b 100644 --- a/addons/pos_loyalty/static/src/overrides/components/product_screen/product_screen.js +++ b/addons/pos_loyalty/static/src/overrides/components/product_screen/product_screen.js @@ -108,9 +108,9 @@ patch(ProductScreen.prototype, { this.currentOrder._updateRewards(); }, async _showDecreaseQuantityPopup() { - const result = await this._super(); - if (result){ + const result = await super._showDecreaseQuantityPopup(); + if (result) { this.currentOrder._updateRewards(); } - } + }, });