diff options
| author | David Beguin <dbe@odoo.com> | 2018-09-19 13:19:57 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2018-10-31 14:35:27 +0000 |
| commit | f20cd3db7565b04a96066aa41e08cd3679eb86c8 (patch) | |
| tree | 319ca6e1d5ed383cb39ec41aaf80c0c582568a80 /setup | |
| parent | edb648f6a1f00293e36b0c06582716251f7ed2b5 (diff) | |
[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
Diffstat (limited to 'setup')
0 files changed, 0 insertions, 0 deletions
