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

[16.0][ADD] web_widget_date_more_filters: New module to recover some usefull filters on date #2998

Draft
wants to merge 2 commits into
base: 16.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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 .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:

# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
parserOptions:
ecmaVersion: 2019
ecmaVersion: 2020

overrides:
- files:
Expand Down
3 changes: 0 additions & 3 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ score=n

[ODOOLINT]
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest-required-authors=Odoo Community Association (OCA)
manifest-required-keys=license
manifest-deprecated-keys=description,active
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
Expand Down Expand Up @@ -39,9 +38,7 @@ enable=anomalous-backslash-in-string,
eval-used,
incoherent-interpreter-exec-perm,
license-allowed,
manifest-author-string,
manifest-deprecated-key,
manifest-required-author,
manifest-required-key,
manifest-version-format,
method-compute,
Expand Down
3 changes: 0 additions & 3 deletions .pylintrc-mandatory
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ score=n

[ODOOLINT]
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest-required-authors=Odoo Community Association (OCA)
manifest-required-keys=license
manifest-deprecated-keys=description,active
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
Expand All @@ -31,9 +30,7 @@ enable=anomalous-backslash-in-string,
eval-used,
incoherent-interpreter-exec-perm,
license-allowed,
manifest-author-string,
manifest-deprecated-key,
manifest-required-author,
manifest-required-key,
manifest-version-format,
method-compute,
Expand Down
6 changes: 6 additions & 0 deletions setup/web_widget_date_more_filters/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
76 changes: 76 additions & 0 deletions web_widget_date_more_filters/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
============================
Web date widget more filters
============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e383adb0393668aaf3000eb3301911e735aa71073455f5e48ec188a7a623f48a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/16.0/web_widget_date_more_filters
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_date_more_filters
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0
:alt: Try me on Runboat

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

This module add more date filters.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/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 <https://github.com/OCA/web/issues/new?body=module:%20web_widget_date_more_filters%0Aversion:%2016.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
~~~~~~~

* Elise Gigot <[email protected]>

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

* Elise Gigot <[email protected]>

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.

This module is part of the `OCA/web <https://github.com/OCA/web/tree/16.0/web_widget_date_more_filters>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
21 changes: 21 additions & 0 deletions web_widget_date_more_filters/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright OpenStudio 2024
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Web date widget more filters",
"category": "web",
"version": "16.0.1.0.0",
"website": "https://github.com/OCA/web",
"author": "Elise Gigot <[email protected]>, Odoo Community Association (OCA)",
"depends": ["web", "hr_timesheet"],
"summary": "Add some filters to the date filters widget",
"license": "AGPL-3",
"installable": True,
"assets": {
"web.assets_backend": [
"web_widget_date_more_filters/static/src/js/web_widget_date_more_filters.esm.js",
],
"web.qunit_suite_tests": [
"web_widget_date_more_filters/static/tests/widget_filter_menu_tests.esm.js",
],
},
}
73 changes: 73 additions & 0 deletions web_widget_date_more_filters/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_timesheet_custom_date_filter

#. module: hr_timesheet_custom_date_filter
#. odoo-javascript
#: code:addons/static/src/js/hr_timesheet_custom_date_filter.js:0
#, python-format
msgid "Today"
msgstr "Aujourd'hui"

#. module: hr_timesheet_custom_date_filter
#. odoo-javascript
#: code:addons/static/src/js/hr_timesheet_custom_date_filter.js:0
#, python-format
msgid "Yesterday"
msgstr "Hier"

#. module: hr_timesheet_custom_date_filter
#. odoo-javascript
#: code:addons/static/src/js/hr_timesheet_custom_date_filter.js:0
#, python-format
msgid "This week"
msgstr "Cette semaine"

#. module: hr_timesheet_custom_date_filter
#. odoo-javascript
#: code:addons/static/src/js/hr_timesheet_custom_date_filter.js:0
#, python-format
msgid "Last week"
msgstr "La semaine dernière"

#. module: hr_timesheet_custom_date_filter
#. odoo-javascript
#: code:addons/static/src/js/hr_timesheet_custom_date_filter.js:0
#, python-format
msgid "Last 7 days"
msgstr "7 derniers jours"

#. module: hr_timesheet_custom_date_filter
#. odoo-javascript
#: code:addons/static/src/js/hr_timesheet_custom_date_filter.js:0
#, python-format
msgid "Last 30 days"
msgstr "30 derniers jours"

#. module: hr_timesheet_custom_date_filter
#. odoo-javascript
#: code:addons/static/src/js/hr_timesheet_custom_date_filter.js:0
#, python-format
msgid "Last 365 days"
msgstr "365 derniers jours"

#. module: hr_timesheet_custom_date_filter
#. odoo-javascript
#: code:addons/static/src/js/hr_timesheet_custom_date_filter.js:0
#, python-format
msgid "From Date"
msgstr "À partir du"

#. module: hr_timesheet_custom_date_filter
#. odoo-javascript
#: code:addons/static/src/js/hr_timesheet_custom_date_filter.js:0
#, python-format
msgid "Until"
msgstr "Jusqu'au"

#. module: hr_timesheet_custom_date_filter
#. odoo-javascript
#: code:addons/static/src/js/hr_timesheet_custom_date_filter.js:0
#, python-format
msgid "Week"
msgstr "Semaine"
1 change: 1 addition & 0 deletions web_widget_date_more_filters/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Elise Gigot <[email protected]>
1 change: 1 addition & 0 deletions web_widget_date_more_filters/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module add more date filters.
Loading
Loading