From 41c0f7c7dd925067ba178bfd30c45ad5c8173ed0 Mon Sep 17 00:00:00 2001 From: Antoine Prieels Date: Fri, 4 Sep 2020 06:37:28 +0000 Subject: [PATCH] [FIX] pos_hr: No close button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When pos_hr is installed but not checked in the current pos.config, the close button was not showing for non admin users. closes odoo/odoo#57141 X-original-commit: ead7e3b801d4f7dcb2d48cf308e405d643dc5368 Signed-off-by: pimodoo Signed-off-by: Antoine Prieƫls --- addons/pos_hr/static/src/js/Chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pos_hr/static/src/js/Chrome.js b/addons/pos_hr/static/src/js/Chrome.js index f4d4ac1282b..eacc95610e5 100644 --- a/addons/pos_hr/static/src/js/Chrome.js +++ b/addons/pos_hr/static/src/js/Chrome.js @@ -12,7 +12,7 @@ odoo.define('pos_hr.chrome', function (require) { if (this.env.pos.config.module_pos_hr) this.showTempScreen('LoginScreen'); } get headerButtonIsShown() { - return this.env.pos.get('cashier').role == 'manager'; + return !this.env.pos.config.module_pos_hr || this.env.pos.get('cashier').role == 'manager'; } };