mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] We better have to use the "with" syntax
This commit is contained in:
@@ -118,10 +118,9 @@ class printing_printer(osv.osv):
|
||||
raise
|
||||
finally:
|
||||
cr.close()
|
||||
self.lock.acquire()
|
||||
self.updating = False
|
||||
self.last_update = time.time()
|
||||
self.lock.release()
|
||||
with self.lock:
|
||||
self.updating = False
|
||||
self.last_update = time.time()
|
||||
|
||||
|
||||
def start_printer_update(self, cr, uid, context):
|
||||
|
||||
Reference in New Issue
Block a user