diff --git a/addons/pos_hr/static/src/js/LoginScreen.js b/addons/pos_hr/static/src/js/LoginScreen.js index b41ea5ec18d..bc5503d594e 100644 --- a/addons/pos_hr/static/src/js/LoginScreen.js +++ b/addons/pos_hr/static/src/js/LoginScreen.js @@ -22,7 +22,7 @@ patch(LoginScreen.prototype, "pos_hr.LoginScreen methods", { } }, async barcodeCashierAction(code) { - if (await this._super(code)) { + if (await this._super(code) && this.env.pos.get_cashier().id) { this.back(); } },