Skip to content

Rename lookup.__cache__ to lookup.cache#1

Open
edescalona wants to merge 1 commit into17.0from
17.0-fix-cache-tools
Open

Rename lookup.__cache__ to lookup.cache#1
edescalona wants to merge 1 commit into17.0from
17.0-fix-cache-tools

Conversation

@edescalona
Copy link
Owner

@edescalona edescalona commented Mar 1, 2026

fix(odoo-cache): add backward-compatible cache alias in ormcache wrappers

Expose both __cache__ and cache on decorated methods in odoo.tools.cache (core and enterprise copies) to avoid crashes when mixed addon revisions call either attribute.

This fixes website routing failure:
AttributeError: 'function' object has no attribute 'cache'

fix(odoo-cache): add backward-compatible cache alias in ormcache wrappers

Expose both `__cache__` and `cache` on decorated methods in `odoo.tools.cache`
(core and enterprise copies) to avoid crashes when mixed addon revisions call
either attribute.

This fixes website routing failure:
AttributeError: 'function' object has no attribute 'cache'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant