From b48aaceb152e60c110200b66be4db0d4d8184891 Mon Sep 17 00:00:00 2001 From: administrator Date: Fri, 25 Apr 2025 10:07:00 +0530 Subject: [PATCH] live cap fix --- .../hr_biometric_attendance/models/biometric_device_details.py | 3 ++- 1 file changed, 2 insertions(+), 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 1b37daaec..aabee507b 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 @@ -747,6 +747,7 @@ class ZKBioAttendance(Thread): registry = Registry(self.env.cr.dbname) with registry.cursor() as new_cr: new_env = api.Environment(new_cr, self.env.uid, self.env.context) + new_cr.commit() if self.conn.get_attendance(): self.record.with_env(new_env).action_download_attendance() - new_cr.commit() +