From 592cb06cb65817e2ad734794d72d422e637369b2 Mon Sep 17 00:00:00 2001 From: Simon Hick Date: Tue, 20 Jan 2026 16:01:43 +0100 Subject: [PATCH] [ADD] add new module hr_work_entry_usability co-authored-by: hugues de keyzer --- hr_work_entry_usability/README.rst | 90 ++++ hr_work_entry_usability/__init__.py | 3 + hr_work_entry_usability/__manifest__.py | 22 + hr_work_entry_usability/i18n/fr.po | 48 ++ .../i18n/hr_work_entry_usability.pot | 43 ++ hr_work_entry_usability/pyproject.toml | 3 + .../readme/CONTRIBUTORS.md | 2 + hr_work_entry_usability/readme/DESCRIPTION.md | 4 + .../static/description/index.html | 433 ++++++++++++++++++ hr_work_entry_usability/views/hr_views.xml | 33 ++ .../views/hr_work_entry_type_views.xml | 52 +++ 11 files changed, 733 insertions(+) create mode 100644 hr_work_entry_usability/README.rst create mode 100644 hr_work_entry_usability/__init__.py create mode 100644 hr_work_entry_usability/__manifest__.py create mode 100644 hr_work_entry_usability/i18n/fr.po create mode 100644 hr_work_entry_usability/i18n/hr_work_entry_usability.pot create mode 100644 hr_work_entry_usability/pyproject.toml create mode 100644 hr_work_entry_usability/readme/CONTRIBUTORS.md create mode 100644 hr_work_entry_usability/readme/DESCRIPTION.md create mode 100644 hr_work_entry_usability/static/description/index.html create mode 100644 hr_work_entry_usability/views/hr_views.xml create mode 100644 hr_work_entry_usability/views/hr_work_entry_type_views.xml diff --git a/hr_work_entry_usability/README.rst b/hr_work_entry_usability/README.rst new file mode 100644 index 00000000000..69f129e90fe --- /dev/null +++ b/hr_work_entry_usability/README.rst @@ -0,0 +1,90 @@ +==================== +Work Entry Usability +==================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:06249c9c87678009b3eac97342eeab5828e4060aba49073518f757253d7ad7d0 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fhr-lightgray.png?logo=github + :target: https://github.com/OCA/hr/tree/18.0/hr_work_entry_usability + :alt: OCA/hr +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/hr-18-0/hr-18-0-hr_work_entry_usability + :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/hr&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Improve usability of work entries and work entry types. + +- Add menu items for work entries and work entry types in the employees + app. +- Improve work entry type list and search views by adding some fields. + +**Table of contents** + +.. contents:: + :local: + +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 +------- + +* Coop IT Easy SC + +Contributors +------------ + +- `Coop IT Easy SC `__: + + - Simon Hick + +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-mihien| image:: https://github.com/mihien.png?size=40px + :target: https://github.com/mihien + :alt: mihien + +Current `maintainer `__: + +|maintainer-mihien| + +This module is part of the `OCA/hr `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_work_entry_usability/__init__.py b/hr_work_entry_usability/__init__.py new file mode 100644 index 00000000000..a300b50c96e --- /dev/null +++ b/hr_work_entry_usability/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2026 Coop IT Easy SC +# +# SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/hr_work_entry_usability/__manifest__.py b/hr_work_entry_usability/__manifest__.py new file mode 100644 index 00000000000..3335217fdd4 --- /dev/null +++ b/hr_work_entry_usability/__manifest__.py @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2026 Coop IT Easy SC +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +{ + "name": "Work Entry Usability", + "summary": "Improve usability of work entries and work entry types", + "version": "18.0.1.0.0", + "category": "Human Resources/Employees", + "website": "https://github.com/OCA/hr", + "author": "Coop IT Easy SC, Odoo Community Association (OCA)", + "maintainers": ["mihien"], + "license": "AGPL-3", + "depends": [ + "hr_work_entry", + ], + "data": [ + "views/hr_work_entry_type_views.xml", + # hr_views depends on items in hr_work_entry_type_views, keep this order + "views/hr_views.xml", + ], +} diff --git a/hr_work_entry_usability/i18n/fr.po b/hr_work_entry_usability/i18n/fr.po new file mode 100644 index 00000000000..831e27b56a9 --- /dev/null +++ b/hr_work_entry_usability/i18n/fr.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_work_entry_type +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-01-06 16:55+0000\n" +"PO-Revision-Date: 2026-01-06 16:55+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" + +#. module: hr_work_entry_usability +#: model_terms:ir.actions.act_window,help:hr_work_entry_usability.hr_work_entry_type_action +msgid "No data to display" +msgstr "Aucune donnée à afficher" + +#. module: hr_work_entry_usability +#: model_terms:ir.ui.view,arch_db:hr_work_entry_usability.hr_work_entry_type_view_search +msgid "Search Work Entry Type" +msgstr "Chercher un type de prestation" + +#. module: hr_work_entry_usability +#: model_terms:ir.actions.act_window,help:hr_work_entry_usability.hr_work_entry_type_action +msgid "" +"Try to add some records, or make sure that there is no active filter in the " +"search bar." +msgstr "" +"Essayez d'ajouter quelques enregistrements ou veillez à ce qu'il n'y ait pas " +"de filtre actif dans la barre de recherche." + +#. module: hr_work_entry_usability +#: model:ir.ui.menu,name:hr_work_entry_usability.menu_root_work_entry +#: model:ir.ui.menu,name:hr_work_entry_usability.menu_work_entry +msgid "Work Entries" +msgstr "Prestations" + +#. module: hr_work_entry_usability +#: model:ir.actions.act_window,name:hr_work_entry_usability.hr_work_entry_type_action +#: model:ir.ui.menu,name:hr_work_entry_usability.menu_work_entry_type +msgid "Work Entry Types" +msgstr "Types de prestation" diff --git a/hr_work_entry_usability/i18n/hr_work_entry_usability.pot b/hr_work_entry_usability/i18n/hr_work_entry_usability.pot new file mode 100644 index 00000000000..4ef60c17a19 --- /dev/null +++ b/hr_work_entry_usability/i18n/hr_work_entry_usability.pot @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_work_entry_usability +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: hr_work_entry_usability +#: model_terms:ir.actions.act_window,help:hr_work_entry_usability.hr_work_entry_type_action +msgid "No data to display" +msgstr "" + +#. module: hr_work_entry_usability +#: model_terms:ir.ui.view,arch_db:hr_work_entry_usability.hr_work_entry_type_view_search +msgid "Search Work Entry Type" +msgstr "" + +#. module: hr_work_entry_usability +#: model_terms:ir.actions.act_window,help:hr_work_entry_usability.hr_work_entry_type_action +msgid "" +"Try to add some records, or make sure that there is no active filter in the " +"search bar." +msgstr "" + +#. module: hr_work_entry_usability +#: model:ir.ui.menu,name:hr_work_entry_usability.menu_root_work_entry +#: model:ir.ui.menu,name:hr_work_entry_usability.menu_work_entry +msgid "Work Entries" +msgstr "" + +#. module: hr_work_entry_usability +#: model:ir.actions.act_window,name:hr_work_entry_usability.hr_work_entry_type_action +#: model:ir.ui.menu,name:hr_work_entry_usability.menu_work_entry_type +msgid "Work Entry Types" +msgstr "" diff --git a/hr_work_entry_usability/pyproject.toml b/hr_work_entry_usability/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/hr_work_entry_usability/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/hr_work_entry_usability/readme/CONTRIBUTORS.md b/hr_work_entry_usability/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..6a77b400e53 --- /dev/null +++ b/hr_work_entry_usability/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +* [Coop IT Easy SC](https://coopiteasy.be): + * Simon Hick diff --git a/hr_work_entry_usability/readme/DESCRIPTION.md b/hr_work_entry_usability/readme/DESCRIPTION.md new file mode 100644 index 00000000000..05d20640009 --- /dev/null +++ b/hr_work_entry_usability/readme/DESCRIPTION.md @@ -0,0 +1,4 @@ +Improve usability of work entries and work entry types. + +* Add menu items for work entries and work entry types in the employees app. +* Improve work entry type list and search views by adding some fields. diff --git a/hr_work_entry_usability/static/description/index.html b/hr_work_entry_usability/static/description/index.html new file mode 100644 index 00000000000..d493a783682 --- /dev/null +++ b/hr_work_entry_usability/static/description/index.html @@ -0,0 +1,433 @@ + + + + + +Work Entry Usability + + + +
+

Work Entry Usability

+ + +

Beta License: AGPL-3 OCA/hr Translate me on Weblate Try me on Runboat

+

Improve usability of work entries and work entry types.

+
    +
  • Add menu items for work entries and work entry types in the employees +app.
  • +
  • Improve work entry type list and search views by adding some fields.
  • +
+

Table of contents

+ +
+

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

+
    +
  • Coop IT Easy SC
  • +
+
+
+

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:

+

mihien

+

This module is part of the OCA/hr project on GitHub.

+

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

+
+
+
+ + diff --git a/hr_work_entry_usability/views/hr_views.xml b/hr_work_entry_usability/views/hr_views.xml new file mode 100644 index 00000000000..9500e2d522c --- /dev/null +++ b/hr_work_entry_usability/views/hr_views.xml @@ -0,0 +1,33 @@ + + + + + + + + + diff --git a/hr_work_entry_usability/views/hr_work_entry_type_views.xml b/hr_work_entry_usability/views/hr_work_entry_type_views.xml new file mode 100644 index 00000000000..d8c36ad80b1 --- /dev/null +++ b/hr_work_entry_usability/views/hr_work_entry_type_views.xml @@ -0,0 +1,52 @@ + + + + + hr.work.entry.type.view.search.inherit + hr.work.entry.type + + + + + + + + + + + hr.work.entry.type.list.inherit + hr.work.entry.type + + + + 1 + 1 + + + + + + + + + + + + Work Entry Types + hr.work.entry.type + work-entry-types + list,form + +

+ No data to display +

+

+ Try to add some records, or make sure that there is no active filter in the search bar. +

+
+
+