diff --git a/auth_api_key/__manifest__.py b/auth_api_key/__manifest__.py index 3cfe4fbe69..c894a84d7b 100644 --- a/auth_api_key/__manifest__.py +++ b/auth_api_key/__manifest__.py @@ -5,7 +5,7 @@ "name": "Auth Api Key", "summary": """ Authenticate http requests from an API key""", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "license": "LGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/server-auth", diff --git a/auth_api_key/models/auth_api_key.py b/auth_api_key/models/auth_api_key.py index 61ee34c17b..416cd4ab7f 100644 --- a/auth_api_key/models/auth_api_key.py +++ b/auth_api_key/models/auth_api_key.py @@ -46,8 +46,7 @@ def _retrieve_uid_from_api_key(self, key): return self._retrieve_api_key(key).user_id.id def _clear_key_cache(self): - self._retrieve_api_key_id.clear_cache(self.env[self._name]) - self._retrieve_uid_from_api_key.clear_cache(self.env[self._name]) + self.env.registry.clear_cache() @api.model_create_multi def create(self, vals_list): diff --git a/auth_api_key/static/description/index.html b/auth_api_key/static/description/index.html index dcb30768c9..0d80030b19 100644 --- a/auth_api_key/static/description/index.html +++ b/auth_api_key/static/description/index.html @@ -1,4 +1,3 @@ -