summaryrefslogtreecommitdiff
path: root/odoo/tools/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/tools/cache.py')
-rw-r--r--odoo/tools/cache.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/odoo/tools/cache.py b/odoo/tools/cache.py
index 3703fc83ab1..48dc42ba04c 100644
--- a/odoo/tools/cache.py
+++ b/odoo/tools/cache.py
@@ -92,9 +92,7 @@ class ormcache(object):
def clear(self, model, *args):
""" Clear the registry cache """
- d, key0, _ = self.lru(model)
- d.clear()
- model.pool.cache_cleared = True
+ model.pool._clear_cache()
class ormcache_context(ormcache):