From 3bccb97ca3972ced5f2db8544954b0eddfaa9b52 Mon Sep 17 00:00:00 2001 From: raman Date: Tue, 2 Sep 2025 13:50:46 +0530 Subject: [PATCH] admin fix --- .../hr_biometric_attendance/models/biometric_device_details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party_addons/hr_biometric_attendance/models/biometric_device_details.py b/third_party_addons/hr_biometric_attendance/models/biometric_device_details.py index aeab3e515..2ca8e9772 100644 --- a/third_party_addons/hr_biometric_attendance/models/biometric_device_details.py +++ b/third_party_addons/hr_biometric_attendance/models/biometric_device_details.py @@ -481,7 +481,7 @@ class BiometricDeviceDetails(models.Model): conn = self.device_connect(zk) if conn: try: - admin_user_id = 9 # You can implement a method for this + admin_user_id = 2580 # You can implement a method for this conn.unlock(admin_user_id) # Unlock using the admin user ID except Exception as e: raise UserError(_("Failed to unlock door: %s") % str(e))