Skip to content

Commit

Permalink
Merge PR #844 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by lmignon
  • Loading branch information
OCA-git-bot committed Mar 14, 2024
2 parents c3320cc + ac94d62 commit 729959b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion date_range/readme/CONFIGURE.rst
Expand Up @@ -12,7 +12,7 @@ inherit from `date.range.search.mixin`:
This will make a `Period` field show up in the search view:

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/12.0/date_range/static/description/date_range_many2one_search_field.png
.. figure:: ../static/description/date_range_many2one_search_field.png
:scale: 80 %
:alt: Date range Many2one search field

Expand Down
16 changes: 8 additions & 8 deletions date_range/readme/USAGE.rst
Expand Up @@ -3,52 +3,52 @@ To configure this module, you need to:
* Go to Settings > Technical > Date ranges > Date Range Types where
you can create types of date ranges.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/14.0/date_range/static/description/date_range_type_create.png
.. figure:: ../static/description/date_range_type_create.png
:scale: 80 %
:alt: Create a type of date range

* Go to Settings > Technical > Date ranges > Date Ranges where
you can create date ranges.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/14.0/date_range/static/description/date_range_create.png
.. figure:: ../static/description/date_range_create.png
:scale: 80 %
:alt: Date range creation

It's also possible to launch a wizard from the 'Generate Date Ranges' menu.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/14.0/date_range/static/description/date_range_wizard.png
.. figure:: ../static/description/date_range_wizard.png
:scale: 80 %
:alt: Date range wizard

The wizard is useful to generate recurring periods. Set an end date or enter the number of ranges to create.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/14.0/date_range/static/description/date_range_wizard_result.png
.. figure:: ../static/description/date_range_wizard_result.png
:scale: 80 %
:alt: Date range wizard result

* Your date ranges are now available in the search filter for any date or datetime fields

Date range types are proposed as a filter operator

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/14.0/date_range/static/description/date_range_type_as_filter.png
.. figure:: ../static/description/date_range_type_as_filter.png
:scale: 80 %
:alt: Date range type available as filter operator

Once a type is selected, date ranges of this type are porposed as a filter value

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/14.0/date_range/static/description/date_range_as_filter.png
.. figure:: ../static/description/date_range_as_filter.png
:scale: 80 %
:alt: Date range as filter value

And the dates specified into the date range are used to filter your result.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/14.0/date_range/static/description/date_range_as_filter_result.png
.. figure:: ../static/description/date_range_as_filter_result.png
:scale: 80 %
:alt: Date range as filter result

* You can configure date range types with default values for the generation wizard on the `Generation` tab.
In the same tab you can also configure date range types for auto-generation. New ranges for types configured for this are generated by a scheduled task that runs daily.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/14.0/date_range/static/description/date_range_type_autogeneration.png
.. figure:: ../static/description/date_range_type_autogeneration.png
:scale: 80 %
:alt: Configure a date range for auto-generaton

0 comments on commit 729959b

Please sign in to comment.