diff --git a/addons/pos_loyalty/static/src/js/ProductScreen.js b/addons/pos_loyalty/static/src/js/ProductScreen.js index 6d2cf493ee6..10a3c63fde7 100644 --- a/addons/pos_loyalty/static/src/js/ProductScreen.js +++ b/addons/pos_loyalty/static/src/js/ProductScreen.js @@ -22,7 +22,7 @@ patch(ProductScreen.prototype, "pos_loyalty.ProductScreen", { const _super = this._super; const selectedLine = this.currentOrder.get_selected_orderline(); if (key === "-") { - if (selectedLine.eWalletGiftCardProgram) { + if (selectedLine && selectedLine.eWalletGiftCardProgram) { // Do not allow negative quantity or price in a gift card or ewallet orderline. // Refunding gift card or ewallet is not supported. this.notification.add(