[FIX] fix in cache with skiparg > 2

bzr revid: christophe@tinyerp.com-20090519084030-ugx8sapnmx39dsiy
This commit is contained in:
Christophe Simonis
2009-05-19 10:40:30 +02:00
parent 0ffca84a42
commit 61ba1b3678
+1 -1
View File
@@ -656,7 +656,7 @@ class cache(object):
if self.multi:
kwargs2[self.multi] = notincache.keys()
result2 = fn(self2, cr, *args[2:self.skiparg], **kwargs2)
result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
if not self.multi:
key = notincache[None]
self.cache[key] = (result2, time.time())