summaryrefslogtreecommitdiff
path: root/odoo/modules
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/modules')
-rw-r--r--odoo/modules/registry.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/odoo/modules/registry.py b/odoo/modules/registry.py
index 1cbe67bd5c3..8122ae4100a 100644
--- a/odoo/modules/registry.py
+++ b/odoo/modules/registry.py
@@ -153,9 +153,7 @@ class Registry(Mapping):
""" Delete the registry linked to a given database. """
with cls._lock:
if db_name in cls.registries:
- registry = cls.registries.pop(db_name)
- registry.clear_caches()
- registry.registry_invalidated = True
+ cls.registries.pop(db_name)
@classmethod
def delete_all(cls):