Skip to content

Commit eadaae8

Browse files
committed
[MIG] fastapi_log_mail
1 parent 6447d9b commit eadaae8

File tree

7 files changed

+15
-72
lines changed

7 files changed

+15
-72
lines changed

fastapi_log_mail/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ FastAPI Log notification
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github
20-
:target: https://github.com/OCA/rest-framework/tree/16.0/fastapi_log_mail
20+
:target: https://github.com/OCA/rest-framework/tree/18.0/fastapi_log_mail
2121
:alt: OCA/rest-framework
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/rest-framework-16-0/rest-framework-16-0-fastapi_log_mail
23+
:target: https://translation.odoo-community.org/projects/rest-framework-18-0/rest-framework-18-0-fastapi_log_mail
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/rest-framework&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=18.0
2727
:alt: Try me on Runboat
2828

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

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

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

8888
|maintainer-SirPyTech|
8989

90-
This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/16.0/fastapi_log_mail>`_ project on GitHub.
90+
This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/18.0/fastapi_log_mail>`_ project on GitHub.
9191

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

fastapi_log_mail/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{
55
"name": "FastAPI Log notification",
6-
"version": "16.0.1.1.0",
6+
"version": "18.0.1.0.0",
77
"license": "AGPL-3",
88
"author": "PyTech, Odoo Community Association (OCA)",
99
"maintainers": [

fastapi_log_mail/migrations/16.0.1.1.0/post-migration.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

fastapi_log_mail/migrations/16.0.1.1.0/pre-migration.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

fastapi_log_mail/pyproject.toml

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"

fastapi_log_mail/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">FastAPI Log notification</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:ef0c0bceb8ae27bcfebaebc22e2fb4747475f2a2c60dd2d410bc40b6efee9b6a
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/rest-framework/tree/16.0/fastapi_log_mail"><img alt="OCA/rest-framework" src="https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/rest-framework-16-0/rest-framework-16-0-fastapi_log_mail"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/rest-framework/tree/18.0/fastapi_log_mail"><img alt="OCA/rest-framework" src="https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/rest-framework-18-0/rest-framework-18-0-fastapi_log_mail"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module allows to create an activity when an exception is logged in
374374
a fastapi endpoint.</p>
375375
<p><strong>Table of contents</strong></p>
@@ -394,7 +394,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
394394
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/rest-framework/issues">GitHub Issues</a>.
395395
In case of trouble, please check there if your issue has already been reported.
396396
If you spotted it first, help us to smash it by providing a detailed and welcomed
397-
<a class="reference external" href="https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi_log_mail%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
397+
<a class="reference external" href="https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi_log_mail%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
398398
<p>Do not contact contributors directly about support or help with technical issues.</p>
399399
</div>
400400
<div class="section" id="credits">
@@ -425,7 +425,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
425425
promote its widespread use.</p>
426426
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
427427
<p><a class="reference external image-reference" href="https://github.com/SirPyTech"><img alt="SirPyTech" src="https://github.com/SirPyTech.png?size=40px" /></a></p>
428-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/rest-framework/tree/16.0/fastapi_log_mail">OCA/rest-framework</a> project on GitHub.</p>
428+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/rest-framework/tree/18.0/fastapi_log_mail">OCA/rest-framework</a> project on GitHub.</p>
429429
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
430430
</div>
431431
</div>

fastapi_log_mail/views/fastapi_endpoint_views.xml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version='1.0' encoding='utf-8' ?>
22
<!--
33
~ Copyright 2025 Simone Rubino - PyTech
44
~ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
@@ -13,20 +13,12 @@
1313
<field
1414
name="api_log_mail_exception_activity_type_id"
1515
groups="api_log.group_api_log"
16-
attrs="{
17-
'invisible': [
18-
('log_requests', '=', False),
19-
],
20-
}"
16+
invisible="not log_requests"
2117
/>
2218
<field
2319
name="api_log_mail_exception_template_id"
2420
groups="api_log.group_api_log"
25-
attrs="{
26-
'invisible': [
27-
('log_requests', '=', False),
28-
],
29-
}"
21+
invisible="not log_requests"
3022
/>
3123
</field>
3224
</field>

0 commit comments

Comments
 (0)