Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.0] [MIG] date_range #99

Merged
merged 37 commits into from
Oct 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
52104d6
9.0 add date range Sorrento Delivery
lmignon Apr 29, 2016
903ba1b
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2016
658f37c
[10.0][MIGRATION] Migrated module 'date_range' to V10
aesposito-onestein Oct 7, 2016
8d2ae71
OCA Transbot updated translations from Transifex
oca-transbot Oct 15, 2016
d631841
[REF] date_range: Use 'index' instead of 'select'
moylop260 Nov 14, 2016
149c216
OCA Transbot updated translations from Transifex
oca-transbot Nov 19, 2016
63a70d4
[IMP] date_range: Several things
alexis-via Jul 11, 2017
a000477
OCA Transbot updated translations from Transifex
oca-transbot Jul 15, 2017
37aaf6a
[10.0][FIX][date_range] Periods of one day should be allowed (#947)
MiquelRForgeFlow Aug 23, 2017
6c60852
[MIG] date_range
etobella Oct 9, 2017
7a31b95
[MIG] date_range: Adapt JS to new framework
lmignon Oct 11, 2017
8c37e09
Fix unlink date range type.
Mar 24, 2018
1a8d450
[IMP] date_range: adapt to multicompany
MiquelRForgeFlow Mar 23, 2018
44c2813
[IMP] date_range: new README structure
lmignon Jun 28, 2018
7a1cc51
[UPD] README.rst
OCA-git-bot Jun 29, 2018
083c059
[UPD] Update date_range.pot
oca-travis Jun 29, 2018
fbd5064
Translated using Weblate (Arabic)
osoul Jun 30, 2018
3d5ef89
[IMP] date_range: Pass integration tests
pedrobaeza Jul 13, 2018
9881b74
[UPD] README.rst
OCA-git-bot Aug 5, 2018
d6ac459
[UPD] Update date_range.pot
oca-travis Aug 8, 2018
ff39d77
Translated using Weblate (Danish)
hhgabelgaard Sep 5, 2018
cf93a94
[12.0][MIG] date_range
astirpe Oct 1, 2018
3ff04ec
eslint
astirpe Oct 2, 2018
07d5ee2
[UPD] README.rst
OCA-git-bot Oct 6, 2018
4962784
[FIX] date_range: Remove useless post_install flag for tests
lmignon Oct 12, 2018
f76509d
[UPD] Update date_range.pot
oca-travis Nov 3, 2018
b47e6d8
Update translation files
oca-transbot Dec 9, 2018
9b73245
Translated using Weblate (Italian)
primes2h Dec 19, 2018
0a880d2
Translated using Weblate (Portuguese)
pedrocasi Jul 5, 2019
9237b2e
[UPD] README.rst
OCA-git-bot Jul 29, 2019
31c0d23
Translated using Weblate (Portuguese)
pedrocasi Aug 14, 2019
3a1cbef
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
3f45f82
[MIG] date_range: Migration to 13.0
MiquelRForgeFlow Sep 30, 2019
7b4d288
[ADD] setup.py
lmignon Oct 18, 2019
a97695c
[MIG] date_range: Migration to 13.0: Fix JS
lmignon Oct 18, 2019
8390483
[FIX] black, isort, eslint
lmignon Oct 18, 2019
6dc3479
[FIX] date_range: Disable external dependency check
lmignon Oct 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
known_third_party=
known_third_party=dateutil,psycopg2,setuptools
1 change: 0 additions & 1 deletion .pylintrc-mandatory
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ enable=anomalous-backslash-in-string,
method-required-super,
method-search,
missing-import-error,
missing-manifest-dependency,
openerp-exception-warning,
pointless-statement,
pointless-string-statement,
Expand Down
141 changes: 141 additions & 0 deletions date_range/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
==========
Date Range
==========

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github
:target: https://github.com/OCA/server-ux/tree/13.0/date_range
:alt: OCA/server-ux
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-ux-13-0/server-ux-13-0-date_range
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/250/13.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

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

**Table of contents**

.. contents::
:local:

Installation
============

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

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.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/10.0/date_range/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/10.0/date_range/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/10.0/date_range/static/description/date_range_wizard.png
:scale: 80 %
:alt: Date range wizard

The wizard is useful to generate recurring periods.

.. figure:: https://raw.githubusercontent.com/OCA/server-tools/10.0/date_range/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/10.0/date_range/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/10.0/date_range/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/10.0/date_range/static/description/date_range_as_filter_result.png
:scale: 80 %
:alt: Date range as filter result

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20date_range%0Aversion:%2013.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.

Credits
=======

Authors
~~~~~~~

* ACSONE SA/NV

Contributors
~~~~~~~~~~~~

* Laurent Mignon <laurent.mignon@acsone.eu>
* Alexis de Lattre <alexis.delattre@akretion.com>
* Miquel Raïch <miquel.raich@eficent.com>
* Andrea Stirpe <a.stirpe@onestein.nl>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-lmignon| image:: https://github.com/lmignon.png?size=40px
:target: https://github.com/lmignon
:alt: lmignon

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-lmignon|

This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/13.0/date_range>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions date_range/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from . import wizard
23 changes: 23 additions & 0 deletions date_range/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Date Range",
"summary": "Manage all kind of date range",
"version": "13.0.1.0.0",
"category": "Uncategorized",
"website": "https://github.com/oca/server-ux",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": ["web"],
"data": [
"security/ir.model.access.csv",
"security/date_range_security.xml",
"views/assets.xml",
"views/date_range_view.xml",
"wizard/date_range_generator.xml",
],
"qweb": ["static/src/xml/date_range.xml"],
"development_status": "Mature",
"maintainers": ["lmignon"],
}
Empty file added date_range/i18n/.empty
Empty file.
Loading