live cap fix

This commit is contained in:
administrator 2025-04-25 10:07:00 +05:30 committed by raman
parent 7b91e82363
commit af98a28428
1 changed files with 2 additions and 1 deletions

View File

@ -747,6 +747,7 @@ class ZKBioAttendance(Thread):
registry = Registry(self.env.cr.dbname) registry = Registry(self.env.cr.dbname)
with registry.cursor() as new_cr: with registry.cursor() as new_cr:
new_env = api.Environment(new_cr, self.env.uid, self.env.context) new_env = api.Environment(new_cr, self.env.uid, self.env.context)
new_cr.commit()
if self.conn.get_attendance(): if self.conn.get_attendance():
self.record.with_env(new_env).action_download_attendance() self.record.with_env(new_env).action_download_attendance()
new_cr.commit()