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:
committed by
Sylvain GARANCHER
parent
4498bced20
commit
ced1d0c13d
@@ -118,10 +118,9 @@ class printing_printer(osv.osv):
|
|||||||
raise
|
raise
|
||||||
finally:
|
finally:
|
||||||
cr.close()
|
cr.close()
|
||||||
self.lock.acquire()
|
with self.lock:
|
||||||
self.updating = False
|
self.updating = False
|
||||||
self.last_update = time.time()
|
self.last_update = time.time()
|
||||||
self.lock.release()
|
|
||||||
|
|
||||||
|
|
||||||
def start_printer_update(self, cr, uid, context):
|
def start_printer_update(self, cr, uid, context):
|
||||||
|
|||||||
Reference in New Issue
Block a user