live cap fix

This commit is contained in:
administrator 2025-04-25 10:07:00 +05:30
parent e8b25f005d
commit b48aaceb15
1 changed files with 2 additions and 1 deletions

View File

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