diff --git a/fusion_clock/models/res_config_settings.py b/fusion_clock/models/res_config_settings.py index f30d88e0..c897c2f6 100644 --- a/fusion_clock/models/res_config_settings.py +++ b/fusion_clock/models/res_config_settings.py @@ -232,6 +232,41 @@ class ResConfigSettings(models.TransientModel): help="Custom column names for CSV export (JSON format). Leave blank for defaults.", ) + # ── NFC Clock Kiosk ──────────────────────────────────────────────── + fclk_enable_nfc_kiosk = fields.Boolean( + string='Enable NFC Clock Kiosk', + config_parameter='fusion_clock.enable_nfc_kiosk', + default=False, + help="Enable the tap-to-clock NFC kiosk page at /fusion_clock/kiosk/nfc.", + ) + fclk_nfc_photo_required = fields.Boolean( + string='Require Photo on Tap', + config_parameter='fusion_clock.nfc_photo_required', + default=True, + help="If enabled, the kiosk rejects taps when the front camera is unavailable. " + "Recommended for buddy-punch deterrence.", + ) + fclk_nfc_enroll_password = fields.Char( + string='Enroll Mode Password', + config_parameter='fusion_clock.nfc_enroll_password', + help="Short password the manager types on the kiosk to enter Enroll Mode. " + "Leave empty to fall back to manager-group membership only.", + ) + fclk_nfc_kiosk_debug = fields.Boolean( + string='Enable Mock-Tap Debug', + 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.", + ) + fclk_nfc_kiosk_location_id = fields.Many2one( + related='company_id.x_fclk_nfc_kiosk_location_id', + readonly=False, + string='NFC Kiosk Location', + help="Which clock location is bound to the NFC kiosk for this company. " + "Required when the kiosk is enabled.", + ) + def set_values(self): super().set_values() ICP = self.env['ir.config_parameter'].sudo() diff --git a/fusion_clock/views/res_config_settings_views.xml b/fusion_clock/views/res_config_settings_views.xml index abb396ac..1b10c5ed 100644 --- a/fusion_clock/views/res_config_settings_views.xml +++ b/fusion_clock/views/res_config_settings_views.xml @@ -242,6 +242,34 @@ + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+