Files
odoo_source/addons
David Beguin f20cd3db75 [FIX] hr_attendance : kiosk mode multi scanning
- Scan a barcode for employee 1 in kiosk mode
- At greetings message, scan a barcode for employee 2

2 attendance entries are created for employee 2 instead of 1.

When scanning the barcode for employee 2, the event listener
`_onBarcodeScanned` is still active on `KioskMode`. Therefore, the RPC
call to `attendance_scan` is performed twice.

We deactivate the event listener after scanning, and reactivate on
`KioskMode` only if there is an issue. This is sufficient since the call
to `do_action` in `GreetingMessage` will create another instance of the
client action. In `GreetingMessage`, we add back the redirection to
`KioskMode`.

Co-authored-by: Nicolas Martinelli <nim@odoo.com>

Linked to Task ID 1878251
opw-1878632
opw-1888402

closes odoo/odoo#28150
2018-10-31 14:35:27 +00:00
..
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-07-24 10:45:46 +02:00
2018-09-03 12:05:30 +02:00