[IMP] web_field_tooltip: black, isort, prettier

pull/2892/head
manu 2024-07-24 10:12:18 +02:00
parent f88a3693db
commit 9945b0a036
12 changed files with 56 additions and 55 deletions

View File

@ -17,19 +17,19 @@ Web Field Tooltip
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/16.0/web_field_tooltip :target: https://github.com/OCA/web/tree/17.0/web_field_tooltip
:alt: OCA/web :alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_field_tooltip :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_field_tooltip
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0 :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0
:alt: Try me on Runboat :alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
This module gives the possibility to add tooltips next to fields labels on any This module gives the possibility to add tooltips next to fields labels
field of a model. The tooltip displays an html field. on any field of a model. The tooltip displays an html field.
**Table of contents** **Table of contents**
@ -41,22 +41,21 @@ Usage
To use this module, you need to: To use this module, you need to:
* Go to Settings / Technical / Database Structure / Fields Tooltips and - Go to Settings / Technical / Database Structure / Fields Tooltips and
configure tooltips for a field for a model. You will then be able to see configure tooltips for a field for a model. You will then be able to
on the form view of the model you chose, next to the label of the field you see on the form view of the model you chose, next to the label of the
selected, the tooltip appear. field you selected, the tooltip appear.
- You can also go directly on the form view of a model on which you
* You can also go directly on the form view of a model on which you want to want to add a tooltip and use the Manage tooltips Action to add a new
add a tooltip and use the Manage tooltips Action to add a new tooltip, or edit tooltip, or edit or delete existing tooltips for this model.
or delete existing tooltips for this model. - For manager users, they can decide to display an helper to add a
tooltip on a field as some fields are not displayed with a label.
* For manager users, they can decide to display an helper to add a tooltip
on a field as some fields are not displayed with a label.
Known issues / Roadmap Known issues / Roadmap
====================== ======================
* Find a way to update form views after tooltips update without refreshing manually - Find a way to update form views after tooltips update without
refreshing manually
Bug Tracker Bug Tracker
=========== ===========
@ -64,7 +63,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported. In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_field_tooltip%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/web/issues/new?body=module:%20web_field_tooltip%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues. Do not contact contributors directly about support or help with technical issues.
@ -72,17 +71,17 @@ Credits
======= =======
Authors Authors
~~~~~~~ -------
* ACSONE SA/NV * ACSONE SA/NV
Contributors Contributors
~~~~~~~~~~~~ ------------
* Benoit Aimont <benoit.aimont@acsone.eu> (https://www.acsone.eu/) - Benoit Aimont <benoit.aimont@acsone.eu> (https://www.acsone.eu/)
Maintainers Maintainers
~~~~~~~~~~~ -----------
This module is maintained by the OCA. This module is maintained by the OCA.
@ -94,6 +93,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use. promote its widespread use.
This module is part of the `OCA/web <https://github.com/OCA/web/tree/16.0/web_field_tooltip>`_ project on GitHub. This module is part of the `OCA/web <https://github.com/OCA/web/tree/17.0/web_field_tooltip>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -6,7 +6,6 @@ from odoo.exceptions import UserError
class IrModelFieldsTooltip(models.Model): class IrModelFieldsTooltip(models.Model):
_name = "ir.model.fields.tooltip" _name = "ir.model.fields.tooltip"
_description = "Field Tooltip" _description = "Field Tooltip"

View File

@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"

View File

@ -0,0 +1 @@
- Benoit Aimont \<<benoit.aimont@acsone.eu>\> (<https://www.acsone.eu/>)

View File

@ -1 +0,0 @@
* Benoit Aimont <benoit.aimont@acsone.eu> (https://www.acsone.eu/)

View File

@ -0,0 +1,2 @@
This module gives the possibility to add tooltips next to fields labels
on any field of a model. The tooltip displays an html field.

View File

@ -1,2 +0,0 @@
This module gives the possibility to add tooltips next to fields labels on any
field of a model. The tooltip displays an html field.

View File

@ -0,0 +1,2 @@
- Find a way to update form views after tooltips update without
refreshing manually

View File

@ -1 +0,0 @@
* Find a way to update form views after tooltips update without refreshing manually

View File

@ -0,0 +1,11 @@
To use this module, you need to:
- Go to Settings / Technical / Database Structure / Fields Tooltips and
configure tooltips for a field for a model. You will then be able to
see on the form view of the model you chose, next to the label of the
field you selected, the tooltip appear.
- You can also go directly on the form view of a model on which you want
to add a tooltip and use the Manage tooltips Action to add a new
tooltip, or edit or delete existing tooltips for this model.
- For manager users, they can decide to display an helper to add a
tooltip on a field as some fields are not displayed with a label.

View File

@ -1,13 +0,0 @@
To use this module, you need to:
* Go to Settings / Technical / Database Structure / Fields Tooltips and
configure tooltips for a field for a model. You will then be able to see
on the form view of the model you chose, next to the label of the field you
selected, the tooltip appear.
* You can also go directly on the form view of a model on which you want to
add a tooltip and use the Manage tooltips Action to add a new tooltip, or edit
or delete existing tooltips for this model.
* For manager users, they can decide to display an helper to add a tooltip
on a field as some fields are not displayed with a label.

View File

@ -368,9 +368,9 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:8bed9817234b31b15cec1799f3a9608a3974db3a8263995e3e9e3605c546a14d !! source digest: sha256:8bed9817234b31b15cec1799f3a9608a3974db3a8263995e3e9e3605c546a14d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/web/tree/16.0/web_field_tooltip"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_field_tooltip"><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/web&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p> <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/web/tree/17.0/web_field_tooltip"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_field_tooltip"><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/web&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module gives the possibility to add tooltips next to fields labels on any <p>This module gives the possibility to add tooltips next to fields labels
field of a model. The tooltip displays an html field.</p> on any field of a model. The tooltip displays an html field.</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
<ul class="simple"> <ul class="simple">
@ -390,20 +390,21 @@ field of a model. The tooltip displays an html field.</p>
<p>To use this module, you need to:</p> <p>To use this module, you need to:</p>
<ul class="simple"> <ul class="simple">
<li>Go to Settings / Technical / Database Structure / Fields Tooltips and <li>Go to Settings / Technical / Database Structure / Fields Tooltips and
configure tooltips for a field for a model. You will then be able to see configure tooltips for a field for a model. You will then be able to
on the form view of the model you chose, next to the label of the field you see on the form view of the model you chose, next to the label of the
selected, the tooltip appear.</li> field you selected, the tooltip appear.</li>
<li>You can also go directly on the form view of a model on which you want to <li>You can also go directly on the form view of a model on which you
add a tooltip and use the Manage tooltips Action to add a new tooltip, or edit want to add a tooltip and use the Manage tooltips Action to add a new
or delete existing tooltips for this model.</li> tooltip, or edit or delete existing tooltips for this model.</li>
<li>For manager users, they can decide to display an helper to add a tooltip <li>For manager users, they can decide to display an helper to add a
on a field as some fields are not displayed with a label.</li> tooltip on a field as some fields are not displayed with a label.</li>
</ul> </ul>
</div> </div>
<div class="section" id="known-issues-roadmap"> <div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1> <h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<ul class="simple"> <ul class="simple">
<li>Find a way to update form views after tooltips update without refreshing manually</li> <li>Find a way to update form views after tooltips update without
refreshing manually</li>
</ul> </ul>
</div> </div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
@ -411,7 +412,7 @@ on a field as some fields are not displayed with a label.</li>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_field_tooltip%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_field_tooltip%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@ -435,7 +436,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/16.0/web_field_tooltip">OCA/web</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/17.0/web_field_tooltip">OCA/web</a> project on GitHub.</p>
<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> <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>
</div> </div>
</div> </div>