[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:
Romain Derie
2023-05-03 13:57:11 +02:00
parent c99cd92c14
commit 8577abc4c1
+1 -1
View File
@@ -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.