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() +