diff options
| author | Christophe Simonis <christophe@tinyerp.com> | 2009-05-19 10:40:30 +0200 |
|---|---|---|
| committer | Christophe Simonis <christophe@tinyerp.com> | 2009-05-19 10:40:30 +0200 |
| commit | 61ba1b367862f6d8cff620a5cd88416ae130ff15 (patch) | |
| tree | 2f447f66db21f3c765482aac069aff3c54a60b88 /bin/tools | |
| parent | 0ffca84a42cf6c6e606a5d69885f0f7578593d3f (diff) | |
[FIX] fix in cache with skiparg > 2
bzr revid: christophe@tinyerp.com-20090519084030-ugx8sapnmx39dsiy
Diffstat (limited to 'bin/tools')
| -rw-r--r-- | bin/tools/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tools/misc.py b/bin/tools/misc.py index 8a348d3af0e..9a71aa01d9e 100644 --- a/bin/tools/misc.py +++ b/bin/tools/misc.py @@ -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()) |
