3
0
Fork 0

[IMP] web_time_range_menu_custom: pre-commit auto fixes

17.0
Carlos Roca 2024-11-22 08:01:40 +01:00
parent 248c6fd8b8
commit c2de3f5e53
9 changed files with 66 additions and 58 deletions

View File

@ -17,19 +17,19 @@ Web Time Range Menu Custom
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/16.0/web_time_range_menu_custom
:target: https://github.com/OCA/web/tree/17.0/web_time_range_menu_custom
:alt: OCA/web
.. |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_time_range_menu_custom
:target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_time_range_menu_custom
:alt: Translate me on Weblate
.. |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
|badge1| |badge2| |badge3| |badge4| |badge5|
Extend period and comparison period options for the date and datetime fields filted menu
adding a new option called "Custom Period".
Extend period and comparison period options for the date and datetime
fields filted menu adding a new option called "Custom Period".
**Table of contents**
@ -41,20 +41,23 @@ Usage
To see this module working:
#. Navigate to any menu that supports date-based filters.
#. Open **Custom period** tab.
#. Add new date filter with the provided options.
1. Navigate to any menu that supports date-based filters.
2. Open **Custom period** tab.
3. Add new date filter with the provided options.
.. image:: https://raw.githubusercontent.com/web_time_range_menu_custom/static/src/description/custom_period_option.png
:alt: Custom Period Option
|Custom Period Option|
For the pivots, on the comparison tab you can see the same option to make the
comparison with the provided filter, taking th reference from the set filter.
For the pivots, on the comparison tab you can see the same option to
make the comparison with the provided filter, taking th reference from
the set filter.
**Note:** For "days," it functions as a range; for example, "Last 7 days" returns the
period from 7 days ago up to today. However, for other options, it provides the
range for the selected period. For instance, "Last 1 month" returns the period from
the first day of the previous month to the last day of the previous month.
**Note:** For "days," it functions as a range; for example, "Last 7
days" returns the period from 7 days ago up to today. However, for other
options, it provides the range for the selected period. For instance,
"Last 1 month" returns the period from the first day of the previous
month to the last day of the previous month.
.. |Custom Period Option| image:: https://raw.githubusercontent.com/web_time_range_menu_custom/static/src/description/custom_period_option.png
Bug Tracker
===========
@ -62,7 +65,7 @@ Bug Tracker
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.
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_time_range_menu_custom%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_time_range_menu_custom%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.
@ -70,20 +73,20 @@ Credits
=======
Authors
~~~~~~~
-------
* Tecnativa
Contributors
~~~~~~~~~~~~
------------
* `Tecnativa <https://www.tecnativa.com>`__:
- `Tecnativa <https://www.tecnativa.com>`__:
* Alexandre D. Díaz
* Carlos Roca
- Alexandre D. Díaz
- Carlos Roca
Maintainers
~~~~~~~~~~~
-----------
This module is maintained by the OCA.
@ -95,6 +98,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/web <https://github.com/OCA/web/tree/16.0/web_time_range_menu_custom>`_ project on GitHub.
This module is part of the `OCA/web <https://github.com/OCA/web/tree/17.0/web_time_range_menu_custom>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

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

View File

@ -0,0 +1,3 @@
- [Tecnativa](https://www.tecnativa.com):
- Alexandre D. Díaz
- Carlos Roca

View File

@ -1,4 +0,0 @@
* `Tecnativa <https://www.tecnativa.com>`__:
* Alexandre D. Díaz
* Carlos Roca

View File

@ -0,0 +1,2 @@
Extend period and comparison period options for the date and datetime
fields filted menu adding a new option called "Custom Period".

View File

@ -1,2 +0,0 @@
Extend period and comparison period options for the date and datetime fields filted menu
adding a new option called "Custom Period".

View File

@ -0,0 +1,17 @@
To see this module working:
1. Navigate to any menu that supports date-based filters.
2. Open **Custom period** tab.
3. Add new date filter with the provided options.
![Custom Period Option](/web_time_range_menu_custom/static/src/description/custom_period_option.png)
For the pivots, on the comparison tab you can see the same option to
make the comparison with the provided filter, taking th reference from
the set filter.
**Note:** For "days," it functions as a range; for example, "Last 7
days" returns the period from 7 days ago up to today. However, for other
options, it provides the range for the selected period. For instance,
"Last 1 month" returns the period from the first day of the previous
month to the last day of the previous month.

View File

@ -1,16 +0,0 @@
To see this module working:
#. Navigate to any menu that supports date-based filters.
#. Open **Custom period** tab.
#. Add new date filter with the provided options.
.. image:: /web_time_range_menu_custom/static/src/description/custom_period_option.png
:alt: Custom Period Option
For the pivots, on the comparison tab you can see the same option to make the
comparison with the provided filter, taking th reference from the set filter.
**Note:** For "days," it functions as a range; for example, "Last 7 days" returns the
period from 7 days ago up to today. However, for other options, it provides the
range for the selected period. For instance, "Last 1 month" returns the period from
the first day of the previous month to the last day of the previous month.

View File

@ -369,9 +369,9 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a7ec150e03ed025658f5fa8b99182db4462ec123cc7ea6a4de38c4e8082059b7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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_time_range_menu_custom"><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_time_range_menu_custom"><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>Extend period and comparison period options for the date and datetime fields filted menu
adding a new option called “Custom Period”.</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_time_range_menu_custom"><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_time_range_menu_custom"><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>Extend period and comparison period options for the date and datetime
fields filted menu adding a new option called “Custom Period”.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
@ -393,20 +393,22 @@ adding a new option called “Custom Period”.</p>
<li>Open <strong>Custom period</strong> tab.</li>
<li>Add new date filter with the provided options.</li>
</ol>
<img alt="Custom Period Option" src="https://raw.githubusercontent.com/web_time_range_menu_custom/static/src/description/custom_period_option.png" />
<p>For the pivots, on the comparison tab you can see the same option to make the
comparison with the provided filter, taking th reference from the set filter.</p>
<p><strong>Note:</strong> For “days,” it functions as a range; for example, “Last 7 days” returns the
period from 7 days ago up to today. However, for other options, it provides the
range for the selected period. For instance, “Last 1 month” returns the period from
the first day of the previous month to the last day of the previous month.</p>
<p><img alt="Custom Period Option" src="https://raw.githubusercontent.com/web_time_range_menu_custom/static/src/description/custom_period_option.png" /></p>
<p>For the pivots, on the comparison tab you can see the same option to
make the comparison with the provided filter, taking th reference from
the set filter.</p>
<p><strong>Note:</strong> For “days,” it functions as a range; for example, “Last 7
days” returns the period from 7 days ago up to today. However, for other
options, it provides the range for the selected period. For instance,
“Last 1 month” returns the period from the first day of the previous
month to the last day of the previous month.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<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.
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_time_range_menu_custom%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_time_range_menu_custom%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>
</div>
<div class="section" id="credits">
@ -436,7 +438,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
mission is to support the collaborative development of Odoo features and
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_time_range_menu_custom">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_time_range_menu_custom">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>
</div>
</div>