diff --git a/fs_storage/models/fs_storage.py b/fs_storage/models/fs_storage.py index 663546f972..b36a0dbbab 100644 --- a/fs_storage/models/fs_storage.py +++ b/fs_storage/models/fs_storage.py @@ -336,7 +336,7 @@ def _is_fs_cacheable(self, code): # For example, the msgd protocol is not cacheable because it uses # OAuth2 authentication and the token can change. fs_storage = self.get_by_code(code) - return fs_storage and fs_storage.is_cacheable + return fs_storage and fs_storage.sudo().is_cacheable @api.model @tools.ormcache()