Skip to content

Commit 036ebd1

Browse files
author
Hadrien Huvelle
committed
[18.0][MIG] endpoint_auth_api_key: Migration to 18.0
1 parent cb12753 commit 036ebd1

13 files changed

Lines changed: 51 additions & 54 deletions

File tree

endpoint_auth_api_key/README.rst

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Endpoint Auth API key
1717
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
1818
:alt: License: LGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb--api-lightgray.png?logo=github
20-
:target: https://github.com/OCA/web-api/tree/16.0/endpoint_auth_api_key
20+
:target: https://github.com/OCA/web-api/tree/18.0/endpoint_auth_api_key
2121
:alt: OCA/web-api
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/web-api-16-0/web-api-16-0-endpoint_auth_api_key
23+
:target: https://translation.odoo-community.org/projects/web-api-18-0/web-api-18-0-endpoint_auth_api_key
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/web-api&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/web-api&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -46,33 +46,35 @@ Bug Tracker
4646
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web-api/issues>`_.
4747
In case of trouble, please check there if your issue has already been reported.
4848
If you spotted it first, help us to smash it by providing a detailed and welcomed
49-
`feedback <https://github.com/OCA/web-api/issues/new?body=module:%20endpoint_auth_api_key%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
49+
`feedback <https://github.com/OCA/web-api/issues/new?body=module:%20endpoint_auth_api_key%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5050

5151
Do not contact contributors directly about support or help with technical issues.
5252

5353
Credits
5454
=======
5555

5656
Authors
57-
~~~~~~~
57+
-------
5858

5959
* Camptocamp
6060

6161
Contributors
62-
~~~~~~~~~~~~
62+
------------
6363

64-
* Simone Orsi <simone.orsi@camptocamp.com>
65-
* `Trobz <https://trobz.com>`_:
64+
- Simone Orsi <simone.orsi@camptocamp.com>
6665

67-
* Son Ho <sonhd@trobz.com>
66+
- `Trobz <https://trobz.com>`__:
67+
68+
- Son Ho <sonhd@trobz.com>
6869

6970
Other credits
70-
~~~~~~~~~~~~~
71+
-------------
7172

72-
The migration of this module from 14.0 to 16.0 was financially supported by Camptocamp
73+
The migration of this module from 14.0 to 16.0 was financially supported
74+
by Camptocamp
7375

7476
Maintainers
75-
~~~~~~~~~~~
77+
-----------
7678

7779
This module is maintained by the OCA.
7880

@@ -92,6 +94,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
9294

9395
|maintainer-simahawk|
9496

95-
This module is part of the `OCA/web-api <https://github.com/OCA/web-api/tree/16.0/endpoint_auth_api_key>`_ project on GitHub.
97+
This module is part of the `OCA/web-api <https://github.com/OCA/web-api/tree/18.0/endpoint_auth_api_key>`_ project on GitHub.
9698

9799
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

endpoint_auth_api_key/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Endpoint Auth API key",
66
"summary": """Provide API key auth for endpoints.""",
7-
"version": "18.0.1.1.1",
7+
"version": "18.0.1.0.0",
88
"license": "LGPL-3",
99
"development_status": "Alpha",
1010
"author": "Camptocamp, Odoo Community Association (OCA)",
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<odoo noupdate="1">
3+
<record id="auth_api_key_demo" model="auth.api.key">
4+
<field name="name">Endpoint API key demo</field>
5+
<field name="key">cZ6dF2UQwNcm</field>
6+
<field name="user_id" ref="base.user_demo" />
7+
</record>
38

4-
<record id="auth_api_key_demo" model="auth.api.key">
5-
<field name="name">Endpoint API key demo</field>
6-
<field name="key">cZ6dF2UQwNcm</field>
7-
<field name="user_id" ref="base.user_demo" />
8-
</record>
9-
10-
<record id="auth_api_key_demo2" model="auth.api.key">
11-
<field name="name">Endpoint API key demo 2</field>
12-
<field name="key">kV47QyOTC5mS</field>
13-
<field name="user_id" ref="base.user_demo" />
14-
</record>
15-
16-
<record id="auth_api_key_group_demo" model="auth.api.key.group">
17-
<field name="name">Demo Group 1</field>
18-
<field name="code">demo_group1</field>
19-
<field name="auth_api_key_ids" eval="[(4, ref('auth_api_key_demo'))]" />
20-
</record>
9+
<record id="auth_api_key_demo2" model="auth.api.key">
10+
<field name="name">Endpoint API key demo 2</field>
11+
<field name="key">kV47QyOTC5mS</field>
12+
<field name="user_id" ref="base.user_demo" />
13+
</record>
2114

15+
<record id="auth_api_key_group_demo" model="auth.api.key.group">
16+
<field name="name">Demo Group 1</field>
17+
<field name="code">demo_group1</field>
18+
<field name="auth_api_key_ids" eval="[(4, ref('auth_api_key_demo'))]" />
19+
</record>
2220
</odoo>

endpoint_auth_api_key/demo/endpoint_demo.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo noupdate="1">
3-
43
<record id="endpoint_demo_1" model="endpoint.endpoint">
54
<field name="name">Demo Endpoint - auth api key</field>
65
<field name="route">/demo/api/key</field>
@@ -15,5 +14,4 @@
1514
result = {"response": Response("ok")}
1615
</field>
1716
</record>
18-
1917
</odoo>

endpoint_auth_api_key/models/endpoint_mixin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class EndpointMixin(models.AbstractModel):
11-
1211
_inherit = "endpoint.mixin"
1312

1413
auth_api_key_group_ids = fields.Many2many(
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- Simone Orsi \<<simone.orsi@camptocamp.com>\>
2+
3+
- [Trobz](https://trobz.com):
4+
5+
> - Son Ho \<<sonhd@trobz.com>\>

endpoint_auth_api_key/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
The migration of this module from 14.0 to 16.0 was financially supported by Camptocamp
1+
The migration of this module from 14.0 to 16.0 was financially supported
2+
by Camptocamp
File renamed without changes.

0 commit comments

Comments
 (0)