summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/libs
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2018-09-19 15:19:57 +0200
committerDavid Beguin <dbe@odoo.com>2018-09-20 10:09:02 +0200
commitb1251b40d545659d50ff5ebfb6af430655e7b2cb (patch)
tree5f7d702f75fa7b1da922108b36a3635afd106f2e /addons/web/static/src/js/libs
parent6d141a1ab90e247846c4421ea0ed925665d71e60 (diff)
[FIX] hr_attendance : fix kiosk mode quick multi scanning
Since the the commit that added the barcode listener in the greeting_message view (aaff7d5d51e360f13c36363a2f118efb8ab163c8), if someone check in and check out and check in again quickly, during the 5 seconds before the welcome view come back, multiple rpc where made to call attendance_scan method, resulting to create inconsistent records in the db. Typically, a check in records could have been create before the confirmation of last check out. Here, we avoid scanning twice the same barcode, between welcome and greeting message view but also inside the greeting message view itself. Employees are now able to check in or check out quickly. Obviously, if the same employee wants to check in and check out within 5 sec, he will need to wait the 5 seconds. Task ID 1878251 Closes PR #27101
Diffstat (limited to 'addons/web/static/src/js/libs')
0 files changed, 0 insertions, 0 deletions