From 5389bd8adc900686bfe3ee17c135c6377a51dc4f Mon Sep 17 00:00:00 2001 From: hugues de keyzer Date: Tue, 27 Jan 2026 11:29:49 +0100 Subject: [PATCH] [ADD] new module hr_work_entry_holidays_usability --- hr_work_entry_holidays_usability/README.rst | 82 ++++ hr_work_entry_holidays_usability/__init__.py | 3 + .../__manifest__.py | 21 + .../pyproject.toml | 3 + .../readme/CONTRIBUTORS.md | 2 + .../readme/DESCRIPTION.md | 4 + .../static/description/index.html | 431 ++++++++++++++++++ .../views/hr_work_entry_type_views.xml | 35 ++ .../views/hr_work_entry_views.xml | 29 ++ 9 files changed, 610 insertions(+) create mode 100644 hr_work_entry_holidays_usability/README.rst create mode 100644 hr_work_entry_holidays_usability/__init__.py create mode 100644 hr_work_entry_holidays_usability/__manifest__.py create mode 100644 hr_work_entry_holidays_usability/pyproject.toml create mode 100644 hr_work_entry_holidays_usability/readme/CONTRIBUTORS.md create mode 100644 hr_work_entry_holidays_usability/readme/DESCRIPTION.md create mode 100644 hr_work_entry_holidays_usability/static/description/index.html create mode 100644 hr_work_entry_holidays_usability/views/hr_work_entry_type_views.xml create mode 100644 hr_work_entry_holidays_usability/views/hr_work_entry_views.xml diff --git a/hr_work_entry_holidays_usability/README.rst b/hr_work_entry_holidays_usability/README.rst new file mode 100644 index 00000000000..31ae43131ce --- /dev/null +++ b/hr_work_entry_holidays_usability/README.rst @@ -0,0 +1,82 @@ +=============================== +Time Off Work Entries Usability +=============================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:d3209c999db5377db1ecf1c4b76982d3adb21492ecc2f9e4bd65c50ac8033823 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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_holidays_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_holidays_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 time off work entries. + +- Add a link to the leave (time off) in the calendar and form view of + work entries. +- Add leave types in the work entry type list and search views. + +**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 `__: + + - hugues de keyzer + +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/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_holidays_usability/__init__.py b/hr_work_entry_holidays_usability/__init__.py new file mode 100644 index 00000000000..a300b50c96e --- /dev/null +++ b/hr_work_entry_holidays_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_holidays_usability/__manifest__.py b/hr_work_entry_holidays_usability/__manifest__.py new file mode 100644 index 00000000000..30422f912f7 --- /dev/null +++ b/hr_work_entry_holidays_usability/__manifest__.py @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2026 Coop IT Easy SC +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +{ + "name": "Time Off Work Entries Usability", + "summary": "Improve usability of time off work entries", + "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)", + "license": "AGPL-3", + "depends": [ + "hr_work_entry_usability", + "hr_work_entry_holidays", + ], + "data": [ + "views/hr_work_entry_type_views.xml", + "views/hr_work_entry_views.xml", + ], +} diff --git a/hr_work_entry_holidays_usability/pyproject.toml b/hr_work_entry_holidays_usability/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/hr_work_entry_holidays_usability/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/hr_work_entry_holidays_usability/readme/CONTRIBUTORS.md b/hr_work_entry_holidays_usability/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..c8cb5ac629f --- /dev/null +++ b/hr_work_entry_holidays_usability/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +* [Coop IT Easy SC](https://coopiteasy.be): + * hugues de keyzer diff --git a/hr_work_entry_holidays_usability/readme/DESCRIPTION.md b/hr_work_entry_holidays_usability/readme/DESCRIPTION.md new file mode 100644 index 00000000000..9d88a154d9e --- /dev/null +++ b/hr_work_entry_holidays_usability/readme/DESCRIPTION.md @@ -0,0 +1,4 @@ +Improve usability of time off work entries. + +* Add a link to the leave (time off) in the calendar and form view of work entries. +* Add leave types in the work entry type list and search views. diff --git a/hr_work_entry_holidays_usability/static/description/index.html b/hr_work_entry_holidays_usability/static/description/index.html new file mode 100644 index 00000000000..b21218f9875 --- /dev/null +++ b/hr_work_entry_holidays_usability/static/description/index.html @@ -0,0 +1,431 @@ + + + + + +Time Off Work Entries Usability + + + +
+

Time Off Work Entries Usability

+ + +

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

+

Improve usability of time off work entries.

+
    +
  • Add a link to the leave (time off) in the calendar and form view of +work entries.
  • +
  • Add leave types in the work entry type list and search views.
  • +
+

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.

+

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_holidays_usability/views/hr_work_entry_type_views.xml b/hr_work_entry_holidays_usability/views/hr_work_entry_type_views.xml new file mode 100644 index 00000000000..e07c74d8bf3 --- /dev/null +++ b/hr_work_entry_holidays_usability/views/hr_work_entry_type_views.xml @@ -0,0 +1,35 @@ + + + + + hr.work.entry.type.view.search.inherit + hr.work.entry.type + + + + + + + + + + hr.work.entry.type.list.inherit + hr.work.entry.type + + + + + + + + diff --git a/hr_work_entry_holidays_usability/views/hr_work_entry_views.xml b/hr_work_entry_holidays_usability/views/hr_work_entry_views.xml new file mode 100644 index 00000000000..88d99b4d824 --- /dev/null +++ b/hr_work_entry_holidays_usability/views/hr_work_entry_views.xml @@ -0,0 +1,29 @@ + + + + + hr.work.entry.calendar.inherit + hr.work.entry + + + + + + + + + + hr.work.entry.form.inherit + hr.work.entry + + + + + + + +