diff --git a/odoo/tools/cache.py b/odoo/tools/cache.py index 9cb568356b5b4..854064d63c576 100644 --- a/odoo/tools/cache.py +++ b/odoo/tools/cache.py @@ -59,7 +59,7 @@ def __call__(self, method): self.method = method self.determine_key() lookup = decorator(self.lookup, method) - lookup.__cache__ = self + lookup.cache = self return lookup def add_value(self, *args, cache_value=None, **kwargs):