live cap fix
This commit is contained in:
parent
e8b25f005d
commit
b48aaceb15
|
|
@ -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()
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue