[FIX] point_of_sale: fix crash when scanning a cashier badge
Conflicts: addons/point_of_sale/static/src/js/screens.js
This commit is contained in:
committed by
Frédéric van der Essen
parent
301ba1b4e4
commit
18f698c952
@@ -180,8 +180,8 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
|
||||
var users = this.pos.users;
|
||||
for(var i = 0, len = users.length; i < len; i++){
|
||||
if(users[i].barcode === code.code){
|
||||
this.pos.cashier = users[i];
|
||||
this.pos_widget.username.refresh();
|
||||
this.pos.set_cashier(users[i]);
|
||||
this.pos_widget.username.renderElement();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user