Discarding the cache completely is suboptimal but
makes the code simpler, and this is not performance
critical anyway. The cache is mostly useful during
module installation, which involves no call to clear_cache.
bzr revid: odo@openerp.com-
20121219101315-1ccuwm6nvmov12zv
for id in ids:
if id in self._uid_cache[db]:
del self._uid_cache[db][id]
- self.context_get.clear_cache(self, cr)
-
+ self.context_get.clear_cache(self)
return res
def unlink(self, cr, uid, ids, context=None):