[IMP] web_time_range_menu_custom: pre-commit auto fixes

This commit is contained in:
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

@@ -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.