Skip to content

Commit bb9caa5

Browse files
committed
Merge PR #605 into 17.0
Signed-off-by lmignon
2 parents 2656570 + c85b244 commit bb9caa5

63 files changed

Lines changed: 3951 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api_log/README.rst

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
=======
2+
API Log
3+
=======
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:a1948d1ff8b66338522f1c1a2988d5ab8b0a7ff97fcbe9589879bd67b30719ce
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github
20+
:target: https://github.com/OCA/rest-framework/tree/17.0/api_log
21+
:alt: OCA/rest-framework
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/rest-framework-17-0/rest-framework-17-0-api_log
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows to store request and response logs for any API.
32+
33+
When a response is logged, the header ``API_LOG_ENTRY_ID`` is injected
34+
in the response header. This header stores the identifier of the log
35+
record produced from the response.
36+
37+
**Table of contents**
38+
39+
.. contents::
40+
:local:
41+
42+
Bug Tracker
43+
===========
44+
45+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/rest-framework/issues>`_.
46+
In case of trouble, please check there if your issue has already been reported.
47+
If you spotted it first, help us to smash it by providing a detailed and welcomed
48+
`feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20api_log%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
49+
50+
Do not contact contributors directly about support or help with technical issues.
51+
52+
Credits
53+
=======
54+
55+
Authors
56+
-------
57+
58+
* Akretion
59+
60+
Contributors
61+
------------
62+
63+
- Florian Mounier florian.mounier@akretion.com
64+
- Guewen Baconnier guewen.baconnier@camptocamp.com
65+
- Simone Orsi simahawk@gmail.com
66+
- `PyTech <https://www.pytech.it>`__:
67+
68+
- Simone Rubino <simone.rubino@pytech.it>
69+
70+
Maintainers
71+
-----------
72+
73+
This module is maintained by the OCA.
74+
75+
.. image:: https://odoo-community.org/logo.png
76+
:alt: Odoo Community Association
77+
:target: https://odoo-community.org
78+
79+
OCA, or the Odoo Community Association, is a nonprofit organization whose
80+
mission is to support the collaborative development of Odoo features and
81+
promote its widespread use.
82+
83+
.. |maintainer-paradoxxxzero| image:: https://github.com/paradoxxxzero.png?size=40px
84+
:target: https://github.com/paradoxxxzero
85+
:alt: paradoxxxzero
86+
87+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
88+
89+
|maintainer-paradoxxxzero|
90+
91+
This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/17.0/api_log>`_ project on GitHub.
92+
93+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

api_log/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

api_log/__manifest__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2025 Akretion (http://www.akretion.com).
2+
# @author Florian Mounier <florian.mounier@akretion.com>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
{
6+
"name": "API Log",
7+
"version": "17.0.1.0.0",
8+
"author": "Akretion, Odoo Community Association (OCA)",
9+
"license": "AGPL-3",
10+
"summary": "Log API requests in database",
11+
"category": "Tools",
12+
"depends": ["web"],
13+
"website": "https://github.com/OCA/rest-framework",
14+
"data": [
15+
"security/res_groups.xml",
16+
"security/ir_model_access.xml",
17+
"views/api_log_views.xml",
18+
],
19+
"maintainers": ["paradoxxxzero"],
20+
}

api_log/i18n/api_log.pot

Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * api_log
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: api_log
17+
#: model:ir.actions.act_window,name:api_log.api_log_action
18+
#: model:ir.ui.menu,name:api_log.menu_api_log
19+
msgid "API Log"
20+
msgstr ""
21+
22+
#. module: api_log
23+
#: model:res.groups,name:api_log.group_api_log
24+
msgid "API Log Access"
25+
msgstr ""
26+
27+
#. module: api_log
28+
#: model:ir.model.fields,field_description:api_log.field_api_log__collection_id
29+
#: model_terms:ir.ui.view,arch_db:api_log.api_log_view_search
30+
msgid "Collection"
31+
msgstr ""
32+
33+
#. module: api_log
34+
#: model:ir.model.fields,field_description:api_log.field_api_log__collection_model
35+
msgid "Collection Model"
36+
msgstr ""
37+
38+
#. module: api_log
39+
#: model:ir.model.fields,field_description:api_log.field_api_log__collection_ref
40+
msgid "Collection Ref"
41+
msgstr ""
42+
43+
#. module: api_log
44+
#: model:ir.model,name:api_log.model_api_log_collection_mixin
45+
msgid "Collection of API logs"
46+
msgstr ""
47+
48+
#. module: api_log
49+
#: model:ir.model.fields,field_description:api_log.field_api_log__create_uid
50+
msgid "Created by"
51+
msgstr ""
52+
53+
#. module: api_log
54+
#: model:ir.model.fields,field_description:api_log.field_api_log__create_date
55+
msgid "Created on"
56+
msgstr ""
57+
58+
#. module: api_log
59+
#: model:ir.model.fields,field_description:api_log.field_api_log__display_name
60+
msgid "Display Name"
61+
msgstr ""
62+
63+
#. module: api_log
64+
#: model_terms:ir.ui.view,arch_db:api_log.api_log_view_search
65+
msgid "Error"
66+
msgstr ""
67+
68+
#. module: api_log
69+
#: model:ir.model.fields,field_description:api_log.field_api_log__id
70+
msgid "ID"
71+
msgstr ""
72+
73+
#. module: api_log
74+
#: model:ir.model.fields,field_description:api_log.field_api_log____last_update
75+
msgid "Last Modified on"
76+
msgstr ""
77+
78+
#. module: api_log
79+
#: model:ir.model.fields,field_description:api_log.field_api_log__write_uid
80+
msgid "Last Updated by"
81+
msgstr ""
82+
83+
#. module: api_log
84+
#: model:ir.model.fields,field_description:api_log.field_api_log__write_date
85+
msgid "Last Updated on"
86+
msgstr ""
87+
88+
#. module: api_log
89+
#: model:ir.model.fields,field_description:api_log.field_api_log_collection_mixin__log_requests
90+
msgid "Log Requests"
91+
msgstr ""
92+
93+
#. module: api_log
94+
#: model:ir.model,name:api_log.model_api_log
95+
msgid "Log for API"
96+
msgstr ""
97+
98+
#. module: api_log
99+
#: model:ir.model.fields,help:api_log.field_api_log_collection_mixin__log_requests
100+
msgid "Log requests in database."
101+
msgstr ""
102+
103+
#. module: api_log
104+
#: model:ir.model.fields,field_description:api_log.field_api_log_collection_mixin__log_ids
105+
msgid "Logs"
106+
msgstr ""
107+
108+
#. module: api_log
109+
#: model_terms:ir.ui.view,arch_db:api_log.api_log_view_search
110+
msgid "Method"
111+
msgstr ""
112+
113+
#. module: api_log
114+
#: model:ir.model.fields,field_description:api_log.field_api_log__name
115+
msgid "Name"
116+
msgstr ""
117+
118+
#. module: api_log
119+
#: model:ir.model.fields,field_description:api_log.field_api_log__referrer
120+
msgid "Referrer"
121+
msgstr ""
122+
123+
#. module: api_log
124+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_body
125+
msgid "Request Body"
126+
msgstr ""
127+
128+
#. module: api_log
129+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_b64
130+
msgid "Request Content"
131+
msgstr ""
132+
133+
#. module: api_log
134+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_content_length
135+
msgid "Request Content Length"
136+
msgstr ""
137+
138+
#. module: api_log
139+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_content_type
140+
msgid "Request Content Type"
141+
msgstr ""
142+
143+
#. module: api_log
144+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_date
145+
msgid "Request Date"
146+
msgstr ""
147+
148+
#. module: api_log
149+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_headers
150+
msgid "Request Headers"
151+
msgstr ""
152+
153+
#. module: api_log
154+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_headers_preview
155+
msgid "Request Headers Preview"
156+
msgstr ""
157+
158+
#. module: api_log
159+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_method
160+
msgid "Request Method"
161+
msgstr ""
162+
163+
#. module: api_log
164+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_preview
165+
msgid "Request Preview"
166+
msgstr ""
167+
168+
#. module: api_log
169+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_time
170+
msgid "Request Time"
171+
msgstr ""
172+
173+
#. module: api_log
174+
#: model:ir.model.fields,field_description:api_log.field_api_log__request_url
175+
msgid "Request Url"
176+
msgstr ""
177+
178+
#. module: api_log
179+
#: model:ir.model.fields,field_description:api_log.field_api_log__response_body
180+
msgid "Response Body"
181+
msgstr ""
182+
183+
#. module: api_log
184+
#: model:ir.model.fields,field_description:api_log.field_api_log__response_b64
185+
msgid "Response Content"
186+
msgstr ""
187+
188+
#. module: api_log
189+
#: model:ir.model.fields,field_description:api_log.field_api_log__response_content_length
190+
msgid "Response Content Length"
191+
msgstr ""
192+
193+
#. module: api_log
194+
#: model:ir.model.fields,field_description:api_log.field_api_log__response_content_type
195+
msgid "Response Content Type"
196+
msgstr ""
197+
198+
#. module: api_log
199+
#: model:ir.model.fields,field_description:api_log.field_api_log__response_date
200+
msgid "Response Date"
201+
msgstr ""
202+
203+
#. module: api_log
204+
#: model:ir.model.fields,field_description:api_log.field_api_log__response_headers
205+
msgid "Response Headers"
206+
msgstr ""
207+
208+
#. module: api_log
209+
#: model:ir.model.fields,field_description:api_log.field_api_log__response_headers_preview
210+
msgid "Response Headers Preview"
211+
msgstr ""
212+
213+
#. module: api_log
214+
#: model:ir.model.fields,field_description:api_log.field_api_log__response_preview
215+
msgid "Response Preview"
216+
msgstr ""
217+
218+
#. module: api_log
219+
#: model:ir.model.fields,field_description:api_log.field_api_log__response_status_code
220+
msgid "Response Status Code"
221+
msgstr ""
222+
223+
#. module: api_log
224+
#: model:ir.model.fields,field_description:api_log.field_api_log__response_time
225+
msgid "Response Time"
226+
msgstr ""
227+
228+
#. module: api_log
229+
#: model:ir.model.fields,field_description:api_log.field_api_log__stack_trace
230+
msgid "Stack Trace"
231+
msgstr ""
232+
233+
#. module: api_log
234+
#: model_terms:ir.ui.view,arch_db:api_log.api_log_view_search
235+
msgid "Success"
236+
msgstr ""
237+
238+
#. module: api_log
239+
#: model:ir.model.fields,field_description:api_log.field_api_log__time
240+
msgid "Time"
241+
msgstr ""
242+
243+
#. module: api_log
244+
#: model_terms:ir.ui.view,arch_db:api_log.api_log_view_search
245+
msgid "Url"
246+
msgstr ""

api_log/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import api_log_collection
2+
from . import api_log

0 commit comments

Comments
 (0)