|Other branches:||11.0, 11.0-website_sale_sanitized, 12.0, and 12.0-web_list_column_text_align|
Table of Contents
Vanilla Odoo comes with a predefined set of date range filters.
There are multiple issues with these filters:
This module allows to easily add contextual date range filters.
Contextual means that the filter does not need to be updated. It always filters records based on the current date.
You may add one of these filters to your favorites or your dashboard and it will not need to be refreshed.
To edit the list of filters that appear in the search view of a model:
After editing the filters, you need to refresh your page for the changes to be applied.
The module comes with the following predefined date ranges:
To add a custom range type:
The following variables can be used inside the domain:
See the library relativedelta for more info.
Weekly date ranges are implemented from monday to sunday.
If you prefer from sunday to saturday: