[FIX] tools.cache: typo preventing caching when @skiparg!=2
lp bug: https://launchpad.net/bugs/988743 fixed bzr revid: odo@openerp.com-20120522162730-k9514eosjo8w0r1i
This commit is contained in:
@@ -43,7 +43,7 @@ class ormcache(object):
|
||||
return r
|
||||
except KeyError:
|
||||
self.stat_miss += 1
|
||||
value = d[args] = self.method(self2, cr, *args)
|
||||
value = d[key] = self.method(self2, cr, *args)
|
||||
return value
|
||||
except TypeError:
|
||||
self.stat_err += 1
|
||||
|
||||
Reference in New Issue
Block a user