[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 <kba@odoo.com>
This commit is contained in:
Audric Onockx (auon)
2022-01-31 08:14:50 +00:00
parent 605c2de536
commit da46de79bf
@@ -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);
},