[FIX] website: cache deprecated, use ormcache
`cache` is an alias to `ormcache` X-original-commit: 1b3348b8b1a6f710ea89c90eb13f668d58b9ea92 Part-of: odoo/odoo#120364
This commit is contained in:
@@ -951,7 +951,7 @@ class Website(models.Model):
|
||||
website_id = self._get_current_website_id(domain_name, fallback=fallback)
|
||||
return self.browse(website_id)
|
||||
|
||||
@tools.cache('domain_name', 'fallback')
|
||||
@tools.ormcache('domain_name', 'fallback')
|
||||
@api.model
|
||||
def _get_current_website_id(self, domain_name, fallback=True):
|
||||
"""Get the current website id.
|
||||
|
||||
Reference in New Issue
Block a user