From da46de79bf9896ce5d438a92b257514cf188707e Mon Sep 17 00:00:00 2001 From: "Audric Onockx (auon)" Date: Thu, 27 Jan 2022 12:49:09 +0000 Subject: [PATCH] [FIX] hr_attendance : stop polling when kiosk_mode Steps : - Attendances > Kiosk Mode - Log in or out several times Issue : - Interface slows down Cause : - When a kiosk is destroyed, poll is started - Yet each time a kiosk is started, the old kiosk is destroyed, which starts a new poll. Fix : - Given that the kiosk mode can't be escaped from the interface, it is not necessary to restart polling when destroying. opw-2735324 closes odoo/odoo#83517 X-original-commit: b3e9b4b17a4b444372fe24f07ad3c947fba540fb Signed-off-by: Kevin Baptiste --- addons/hr_attendance/static/src/js/kiosk_mode.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/hr_attendance/static/src/js/kiosk_mode.js b/addons/hr_attendance/static/src/js/kiosk_mode.js index b10e56baef0..53e124f46c5 100644 --- a/addons/hr_attendance/static/src/js/kiosk_mode.js +++ b/addons/hr_attendance/static/src/js/kiosk_mode.js @@ -75,7 +75,6 @@ var KioskMode = AbstractAction.extend({ core.bus.off('barcode_scanned', this, this._onBarcodeScanned); clearInterval(this.clock_start); clearInterval(this._interval); - this.call('bus_service', 'startPolling'); this._super.apply(this, arguments); },