diff --git a/addons/point_of_sale/static/src/js/Chrome.js b/addons/point_of_sale/static/src/js/Chrome.js index 7ebe3857406..872e75a86b3 100644 --- a/addons/point_of_sale/static/src/js/Chrome.js +++ b/addons/point_of_sale/static/src/js/Chrome.js @@ -545,6 +545,9 @@ odoo.define('point_of_sale.Chrome', function(require) { console.error('Unknown error. Unable to show information about this error.', errorToHandle); } } + _shouldResetIdleTimer() { + return true; + } } Chrome.template = 'Chrome'; Object.defineProperty(Chrome, "components", { diff --git a/addons/pos_hr/static/src/js/Chrome.js b/addons/pos_hr/static/src/js/Chrome.js index 5109feab282..181e7848cb8 100644 --- a/addons/pos_hr/static/src/js/Chrome.js +++ b/addons/pos_hr/static/src/js/Chrome.js @@ -22,6 +22,9 @@ odoo.define('pos_hr.chrome', function (require) { } return super.shouldShowCashControl(); } + _shouldResetIdleTimer() { + return super._shouldResetIdleTimer() && this.tempScreen.name !== 'LoginScreen'; + } }; Registries.Component.extend(Chrome, PosHrChrome); diff --git a/addons/pos_restaurant/static/src/js/Chrome.js b/addons/pos_restaurant/static/src/js/Chrome.js index be20fb1d9b7..58141ec9a70 100644 --- a/addons/pos_restaurant/static/src/js/Chrome.js +++ b/addons/pos_restaurant/static/src/js/Chrome.js @@ -60,7 +60,7 @@ odoo.define('pos_restaurant.chrome', function (require) { this.showScreen('FloorScreen', { floor: table ? table.floor : null }); } _shouldResetIdleTimer() { - return this.env.pos.config.iface_floorplan && this.mainScreen.name !== 'FloorScreen'; + return super._shouldResetIdleTimer() && this.env.pos.config.iface_floorplan && this.mainScreen.name !== 'FloorScreen'; } __showScreen() { super.__showScreen(...arguments);