[FIX] pos_loyalty: no customer cache clear needed when there is no customer

This commit is contained in:
Olivier Dony
2015-07-01 10:58:04 +02:00
parent caa330b11c
commit 2ea69ba9a4
+1 -1
View File
@@ -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);
},