From a9abfb5356e271cb04f30bc5c75721af28fff91a Mon Sep 17 00:00:00 2001 From: Frederic van der Essen Date: Wed, 1 Oct 2014 12:28:17 +0200 Subject: [PATCH] [IMP] pos_loyalty: always show the reward before assignation, unless there is only one configured reward --- addons/pos_loyalty/static/src/js/loyalty.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pos_loyalty/static/src/js/loyalty.js b/addons/pos_loyalty/static/src/js/loyalty.js index da8b8e0ba3b..5673231f3af 100644 --- a/addons/pos_loyalty/static/src/js/loyalty.js +++ b/addons/pos_loyalty/static/src/js/loyalty.js @@ -264,7 +264,7 @@ openerp.pos_loyalty = function(instance){ 'comment': 'There are no rewards available for this customer as part of the loyalty program', }); return; - } else if (rewards.length === 1) { + } else if (rewards.length === 1 && this.pos.loyalty.rewards.length === 1) { order.apply_reward(rewards[0]); return; } else {