[FIX] pos_loyalty: no customer cache clear needed when there is no customer
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user