Skip to content

Commit

Permalink
[MIG] auth_api_key: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thienvh332 committed Oct 9, 2024
1 parent 2298864 commit f7d6ce1
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 8 deletions.
7 changes: 7 additions & 0 deletions auth_api_key/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ Contributors
- Quentin Groulard <[email protected]>
- Sébastien Beau <[email protected]>
- Chafique Delli <[email protected]>
- Thien Vo Hong <[email protected]>

Other credits
-------------

The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp.

Maintainers
-----------
Expand Down
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": "17.0.1.0.0",
"version": "18.0.1.0.0",
"license": "LGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-auth",
Expand Down
2 changes: 1 addition & 1 deletion auth_api_key/models/auth_api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _retrieve_api_key_id(self, key):
for api_key in self.search([]):
if api_key.key and consteq(key, api_key.key):
return api_key.id
raise ValidationError(_("The key %s is not allowed") % key)
raise ValidationError(_(f"The key {key} is not allowed"))

@api.model
@tools.ormcache("key")
Expand Down
1 change: 1 addition & 0 deletions auth_api_key/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
- Quentin Groulard \<<[email protected]>\>
- Sébastien Beau \<<[email protected]>\>
- Chafique Delli \<<[email protected]>\>
- Thien Vo Hong \<<[email protected]>\>
1 change: 1 addition & 0 deletions auth_api_key/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.
11 changes: 9 additions & 2 deletions auth_api_key/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ <h1 class="title">Auth Api Key</h1>
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
<li><a class="reference internal" href="#other-credits" id="toc-entry-7">Other credits</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -438,10 +439,16 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<li>Quentin Groulard &lt;<a class="reference external" href="mailto:quentin.groulard&#64;acsone.eu">quentin.groulard&#64;acsone.eu</a>&gt;</li>
<li>Sébastien Beau &lt;<a class="reference external" href="mailto:sebastien.beau&#64;akretion.com">sebastien.beau&#64;akretion.com</a>&gt;</li>
<li>Chafique Delli &lt;<a class="reference external" href="mailto:chafique.delli&#64;akretion.com">chafique.delli&#64;akretion.com</a>&gt;</li>
<li>Thien Vo Hong &lt;<a class="reference external" href="mailto:thienvh&#64;trobz.com">thienvh&#64;trobz.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="other-credits">
<h2><a class="toc-backref" href="#toc-entry-7">Other credits</a></h2>
<p>The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp.</p>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
Expand Down
8 changes: 4 additions & 4 deletions auth_api_key/views/auth_api_key.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
</field>
</record>
<record model="ir.ui.view" id="auth_api_key_tree_view">
<field name="name">auth.api.key.tree (in auth_api_key)</field>
<field name="name">auth.api.key.list (in auth_api_key)</field>
<field name="model">auth.api.key</field>
<field name="arch" type="xml">
<tree>
<list>
<field name="name" />
<field name="user_id" />
</tree>
</list>
</field>
</record>
<record model="ir.actions.act_window" id="auth_api_key_act_window">
<field name="name">Auth Api Key</field>
<field name="res_model">auth.api.key</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
<field name="domain">[]</field>
<field name="context">{}</field>
</record>
Expand Down

0 comments on commit f7d6ce1

Please sign in to comment.