[FIX] fix in cache with skiparg > 2
bzr revid: christophe@tinyerp.com-20090519084030-ugx8sapnmx39dsiy
This commit is contained in:
parent
0ffca84a42
commit
61ba1b3678
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue