summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2015-07-01 10:57:11 +0200
committerOlivier Dony <odo@openerp.com>2015-07-01 10:58:04 +0200
commit2ea69ba9a47cb88e0727e7ea25399da260d284bc (patch)
tree3c17cd54781b7271047aefcf79512d48604531c9 /addons
parentcaa330b11ca8cdac848b8ce4c98b6c96d4c748e6 (diff)
[FIX] pos_loyalty: no customer cache clear needed when there is no customer
Diffstat (limited to 'addons')
-rw-r--r--addons/pos_loyalty/static/src/js/loyalty.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/pos_loyalty/static/src/js/loyalty.js b/addons/pos_loyalty/static/src/js/loyalty.js
index ea3214bc818..2062f2a748d 100644
--- a/addons/pos_loyalty/static/src/js/loyalty.js
+++ b/addons/pos_loyalty/static/src/js/loyalty.js
@@ -310,8 +310,8 @@ openerp.pos_loyalty = function(instance){
var client = this.get_client();
if ( client ) {
client.loyalty_points = this.get_new_total_points();
+ this.pos.gui.screen_instances.clientlist.partner_cache.clear_node(client.id);
}
- this.pos.gui.screen_instances.clientlist.partner_cache.clear_node(client.id);
_super.prototype.finalize.apply(this,arguments);
},