Skip to content

Commit

Permalink
[MIG] auth_api_key: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisb-c01 committed Dec 17, 2023
1 parent 8003141 commit 19b09b4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion auth_api_key/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions auth_api_key/models/auth_api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion auth_api_key/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down

0 comments on commit 19b09b4

Please sign in to comment.