feat(fusion_clock): NFC kiosk on-screen debug overlay + clearer settings label

This commit is contained in:
gsinghpal
2026-05-14 08:03:47 -04:00
parent 878d05685c
commit 98cb42d2e5
3 changed files with 59 additions and 11 deletions

View File

@@ -253,11 +253,13 @@ class ResConfigSettings(models.TransientModel):
"Leave empty to fall back to manager-group membership only.",
)
fclk_nfc_kiosk_debug = fields.Boolean(
string='Enable Mock-Tap Debug',
string='Debug Mode (overlay + mock-tap)',
config_parameter='fusion_clock.nfc_kiosk_debug',
default=False,
help="Enables a Ctrl+Shift+T keyboard shortcut on the kiosk page for "
"simulating a tap with a configurable UID. Off in production.",
help="Enables two dev/troubleshooting features on the NFC kiosk page: "
"(1) a green-text debug overlay at the top of the screen logging every NFC and tap event in real time, "
"and (2) a Ctrl+Shift+T keyboard shortcut that simulates a tap with a configurable UID. "
"Turn OFF in production — the overlay is intrusive for end users.",
)
fclk_nfc_kiosk_location_id = fields.Many2one(
related='company_id.x_fclk_nfc_kiosk_location_id',