Replace has_lock cursor function with lock
This commit is contained in:
@@ -645,8 +645,7 @@ class Move(ModelSQL, ModelView):
|
||||
if context is None:
|
||||
context = {}
|
||||
|
||||
if cursor.has_lock():
|
||||
cursor.execute('LOCK TABLE stock_move')
|
||||
cursor.lock(self._table)
|
||||
|
||||
local_ctx = context and context.copy() or {}
|
||||
local_ctx['stock_date_end'] = date_obj.today(cursor, user,
|
||||
|
||||
Reference in New Issue
Block a user