KERNEL: fix delta test if not log_access object
bzr revid: ced-fb994845a8df89f3504be8f63424d64e5612b845
This commit is contained in:
parent
fa0ee9aa94
commit
c1df600b5b
|
@ -849,7 +849,7 @@ class orm(object):
|
|||
#
|
||||
def write(self, cr, user, ids, vals, context={}):
|
||||
delta= context.get('read_delta',False)
|
||||
if delta:
|
||||
if delta and self._log_access:
|
||||
cr.execute("select (now() - '%s'::interval - min(write_date)) >= '0'::interval from %s where id in (%s)"% (delta,self._table,",".join(map(str, ids))) )
|
||||
res= cr.fetchall()
|
||||
if res and (res.pop()[0] == 0):
|
||||
|
|
Loading…
Reference in New Issue