-
- Downloads
[FIX] hr_attendance : fix kiosk mode - js review
The main goal here is to avoid using a global variable. The greeting message _onBarcodeScanned bus can be stoped right after the barcode_scanned as every time a barcode is scanned, it creates a new instance of the greeting message. Some other JS guidelines are also applied here. Special thanks to Martin Geubelle (@mge-odoo) for helping me on this. [TEST] hr_attendance : add test for multiple quick scan in kiosk mode Glorious thanks to @RomainLibert who fu**s off his brain to help me understand what was really going on and how to simulate the functional behaviour of Greeting Message kiosk stuff. Task ID 1878251 Closes PR #27127
Showing
- addons/hr_attendance/static/src/js/greeting_message.js 11 additions, 10 deletionsaddons/hr_attendance/static/src/js/greeting_message.js
- addons/hr_attendance/static/src/js/kiosk_mode.js 1 addition, 0 deletionsaddons/hr_attendance/static/src/js/kiosk_mode.js
- addons/hr_attendance/static/tests/hr_attendance_tests.js 126 additions, 0 deletionsaddons/hr_attendance/static/tests/hr_attendance_tests.js
Please register or sign in to comment