diff --git a/addons/point_of_sale/static/src/js/Chrome.js b/addons/point_of_sale/static/src/js/Chrome.js index 872e75a86b3..a08ae001bfa 100644 --- a/addons/point_of_sale/static/src/js/Chrome.js +++ b/addons/point_of_sale/static/src/js/Chrome.js @@ -274,6 +274,7 @@ odoo.define('point_of_sale.Chrome', function(require) { } __closeTempScreen() { this.tempScreen.isShown = false; + this.tempScreen.name = null; } __showScreen({ detail: { name, props = {} } }) { const component = this.constructor.components[name]; diff --git a/addons/pos_restaurant/static/src/js/Chrome.js b/addons/pos_restaurant/static/src/js/Chrome.js index 5b9162d6837..45fcf4af684 100644 --- a/addons/pos_restaurant/static/src/js/Chrome.js +++ b/addons/pos_restaurant/static/src/js/Chrome.js @@ -53,6 +53,10 @@ odoo.define('pos_restaurant.chrome', function (require) { } } _actionAfterIdle() { + // We also need to check if the action still need to be triggered + if (!this._shouldResetIdleTimer()) { + return; + } if (this.tempScreen.isShown) { this.trigger('close-temp-screen'); }