Date Range
(0)
501

Date Range

FREE

Required apps
Web (web)
Technical name
date_range
License
LGPL-3
Secure dependencies
N/A
Date Range

Date Range

Mature License: LGPL-3 OCA/server-ux Translate me on Weblate Try me on Runboat

This module lets you define global date ranges that can be used to filter your values in tree views.

It also provides a mixin model for developers that extends the model’s search view so that date ranges can be search as any relational field.

Table of contents

Installation

The addon use the daterange method from postgres. This method is supported as of postgresql 9.2

Configuration

For regular usage, see Usage below. This section is to clarify optional functionality to developers.

To configure a model to use the Many2one style search field, make the model inherit from date.range.search.mixin:

class AccountMove(models.Model):
    _name = "account.move"
    _inherit = ["account.move", "date.range.search.mixin"]

This will make a Period field show up in the search view:

Date range Many2one search field

By default, the mixin works on the date field. If you want the mixin to work on a field with a different name, you can set a property on your model:

_date_range_search_field = "invoice_date"

Usage

To configure this module, you need to:

  • Go to Settings > Technical > Date ranges > Date Range Types where you can create types of date ranges.

    Create a type of date range
  • Go to Settings > Technical > Date ranges > Date Ranges where you can create date ranges.

    Date range creation

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

    Date range wizard

    The wizard is useful to generate recurring periods.

    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

    Date range type available as filter operator

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

    Date range as filter value

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

    Date range as filter result

Bug Tracker

Bugs are tracked on GitHub 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.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • ACSONE SA/NV

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

Current maintainer:

lmignon

This module is part of the OCA/server-ux project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

0.0 / 5.0
based on 0 ratings

Python dependencies

Package Version Secured
psycopg2_binary 2.8.6
lxml 4.6.1
odoo_test_helper 2.1.1
python_dateutil 2.9.0.post0
This app has automated tests.

Available languages

Language % translated
Slovak / Slovenský jazyk
93%
Portuguese / Português
93%
Chinese (Simplified) / 简体中文
93%
Italian / Italiano
93%
Croatian / hrvatski jezik
93%
Arabic / الْعَرَبيّة
83%
German / Deutsch
73%
Portuguese (BR) / Português (BR)
32%
Slovenian / slovenščina
26%
Portuguese / Português
22%
Dutch / Nederlands
22%
Croatian / hrvatski jezik
22%
Finnish / Suomi
22%
Dutch / Nederlands
22%
Bulgarian / български език
22%
Serbian (Latin) / srpski
20%
Spanish (CL) / Español (CL)
20%
Spanish (VE) / Español (VE)
20%
Vietnamese / Tiếng Việt
20%
Hungarian / Magyar
20%
Turkish / Türkçe
20%
Thai / ภาษาไทย
20%
Macedonian / македонски јазик
20%
Spanish (DO) / Español (DO)
20%
Japanese / 日本語
20%
English (UK)
20%
Estonian / Eesti keel
20%
Spanish (CO) / Español (CO)
20%
Chinese (Traditional) / 繁體中文
20%
Bosnian / bosanski jezik
20%
Turkish / Türkçe
20%
Indonesian / Bahasa Indonesia
20%
Polish / Język polski
20%
French (CH) / Français (CH)
20%
Dutch (BE) / Nederlands (BE)
20%
Swedish / Svenska
20%
Spanish (MX) / Español (MX)
20%
Romanian / română
20%
Mongolian / монгол
20%
Spanish (AR) / Español (AR)
20%
Spanish (EC) / Español (EC)
20%
Ukrainian / українська
20%
Hebrew / עִבְרִי
20%
Persian / فارس
20%
Spanish / Español
18%
French (CA) / Français (CA)
18%
Spanish (PE) / Español (PE)
18%
Spanish / Español
18%
Spanish (PY) / Español (PY)
16%
Russian / русский язык
16%
Spanish (CR) / Español (CR)
16%
Latvian / latviešu valoda
16%
Norwegian Bokmål / Norsk bokmål
16%
Vietnamese / Tiếng Việt
14%
Greek / Ελληνικά
14%
Lithuanian / Lietuvių kalba
12%
Lithuanian / Lietuvių kalba
12%
French / Français
4%
Catalan / Català
4%
French / Français
4%
Lao / ພາສາລາວ
2%
Galician / Galego
2%
English (AU)
2%
Hindi / हिंदी
2%
Galician / Galego
2%