Skip to content

Commit

Permalink
[IMP] web_widget_date_more_filters: add last week filters and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Elise Gigot committed Dec 4, 2024
1 parent 2923175 commit b6a577e
Show file tree
Hide file tree
Showing 11 changed files with 989 additions and 189 deletions.
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
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.
9 changes: 6 additions & 3 deletions web_widget_date_more_filters/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
"category": "web",
"version": "16.0.1.0.0",
"website": "https://github.com/OCA/web",
"author": "Elise Gigot <[email protected]>",
"author": "Elise Gigot <[email protected]>, Odoo Community Association (OCA)",
"depends": ["web", "hr_timesheet"],
"summary": "Add some filters to the date filters wdidget",
"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.js",
"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",
],
},
}
7 changes: 7 additions & 0 deletions web_widget_date_more_filters/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ msgstr "Hier"
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
Expand Down
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

0 comments on commit b6a577e

Please sign in to comment.