KERNEL: fix delta test if not log_access object

bzr revid: ced-fb994845a8df89f3504be8f63424d64e5612b845
This commit is contained in:
ced 2007-05-08 16:38:41 +00:00
parent fa0ee9aa94
commit c1df600b5b
1 changed files with 1 additions and 1 deletions

View File

@ -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):