From 98e0289846de9a6a46071eabdc0b6ccb9206d165 Mon Sep 17 00:00:00 2001 From: Pierre Verkest Date: Wed, 15 Nov 2023 16:32:55 +0100 Subject: [PATCH] ADD hr_holidays_calendar_name This module allows to template the name of the calendar meeting name created from validated hr leaves --- hr_holidays_calendar_name/README.rst | 77 ++++ hr_holidays_calendar_name/__init__.py | 1 + hr_holidays_calendar_name/__manifest__.py | 17 + hr_holidays_calendar_name/i18n/fr.po | 101 +++++ .../i18n/hr_holidays_calendar_name.pot | 77 ++++ hr_holidays_calendar_name/models/__init__.py | 2 + hr_holidays_calendar_name/models/hr_leave.py | 47 ++ .../models/hr_leave_type.py | 31 ++ .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 2 + .../static/description/index.html | 422 ++++++++++++++++++ hr_holidays_calendar_name/tests/__init__.py | 1 + .../tests/test_hr_leave.py | 111 +++++ .../views/hr_leave_type.xml | 22 + .../odoo/addons/hr_holidays_calendar_name | 1 + setup/hr_holidays_calendar_name/setup.py | 6 + test-requirements.txt | 1 + 17 files changed, 920 insertions(+) create mode 100644 hr_holidays_calendar_name/README.rst create mode 100644 hr_holidays_calendar_name/__init__.py create mode 100644 hr_holidays_calendar_name/__manifest__.py create mode 100644 hr_holidays_calendar_name/i18n/fr.po create mode 100644 hr_holidays_calendar_name/i18n/hr_holidays_calendar_name.pot create mode 100644 hr_holidays_calendar_name/models/__init__.py create mode 100644 hr_holidays_calendar_name/models/hr_leave.py create mode 100644 hr_holidays_calendar_name/models/hr_leave_type.py create mode 100644 hr_holidays_calendar_name/readme/CONTRIBUTORS.rst create mode 100644 hr_holidays_calendar_name/readme/DESCRIPTION.rst create mode 100644 hr_holidays_calendar_name/static/description/index.html create mode 100644 hr_holidays_calendar_name/tests/__init__.py create mode 100644 hr_holidays_calendar_name/tests/test_hr_leave.py create mode 100644 hr_holidays_calendar_name/views/hr_leave_type.xml create mode 120000 setup/hr_holidays_calendar_name/odoo/addons/hr_holidays_calendar_name create mode 100644 setup/hr_holidays_calendar_name/setup.py create mode 100644 test-requirements.txt diff --git a/hr_holidays_calendar_name/README.rst b/hr_holidays_calendar_name/README.rst new file mode 100644 index 00000000..cf576975 --- /dev/null +++ b/hr_holidays_calendar_name/README.rst @@ -0,0 +1,77 @@ +====================== +Holidays calendar name +====================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:7369318bedbd8d7d442cb86ddfdb5afd3404993e989e8329c9aa317910708f58 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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--holidays-lightgray.png?logo=github + :target: https://github.com/OCA/hr-holidays/tree/14.0/hr_holidays_calendar_name + :alt: OCA/hr-holidays +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/hr-holidays-14-0/hr-holidays-14-0-hr_holidays_calendar_name + :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-holidays&target_branch=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +HR Officer can configure calendar template name on leave types to +control labels on generated calendar event label from leaves. + +**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 +~~~~~~~ + +* Pierre Verkest + +Contributors +~~~~~~~~~~~~ + +* Pierre Verkest + +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-holidays `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_holidays_calendar_name/__init__.py b/hr_holidays_calendar_name/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/hr_holidays_calendar_name/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/hr_holidays_calendar_name/__manifest__.py b/hr_holidays_calendar_name/__manifest__.py new file mode 100644 index 00000000..42ee862f --- /dev/null +++ b/hr_holidays_calendar_name/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright (C) 2018 Brainbean Apps (https://brainbeanapps.com) +# Copyright 2020 CorporateHub (https://corporatehub.eu) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + "name": "Holidays calendar name", + "version": "14.0.1.0.0", + "category": "Human Resources", + "website": "https://github.com/OCA/hr-holidays", + "author": "Pierre Verkest , Odoo Community Association (OCA)", + "license": "AGPL-3", + "installable": True, + "application": False, + "summary": "Control leave employee calendar meeting name", + "depends": ["hr_holidays"], + "data": ["views/hr_leave_type.xml"], +} diff --git a/hr_holidays_calendar_name/i18n/fr.po b/hr_holidays_calendar_name/i18n/fr.po new file mode 100644 index 00000000..f0ad7222 --- /dev/null +++ b/hr_holidays_calendar_name/i18n/fr.po @@ -0,0 +1,101 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_calendar_name +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: hr_holidays_calendar_name +#: code:addons/hr_holidays_calendar_name/models/hr_leave.py:0 +#, python-format +msgid "%.2f day(s)" +msgstr "%.2f jour(s)" + +#. module: hr_holidays_calendar_name +#: code:addons/hr_holidays_calendar_name/models/hr_leave.py:0 +#, python-format +msgid "%.2f hour(s)" +msgstr "%.2f heure(s)" + +#. module: hr_holidays_calendar_name +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave_type__calendar_meeting_leave_template +msgid "Calendar Meeting Leave Template" +msgstr "Modèle de nom d'évènement du calendrier" + +#. module: hr_holidays_calendar_name +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave__display_name +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave_type__display_name +msgid "Display Name" +msgstr "Libellé" + +#. module: hr_holidays_calendar_name +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave__id +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave_type__id +msgid "ID" +msgstr "" + +#. module: hr_holidays_calendar_name +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave____last_update +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave_type____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: hr_holidays_calendar_name +#: model:ir.model.fields,help:hr_holidays_calendar_name.field_hr_leave_type__calendar_meeting_leave_template +msgid "" +"Template used to generate calendar meeting name, \n" +"ie: '%(employee_name)s on Time Off : %(formatted_duration)s' which is " +"roughly the default behavior from odoo if you leave this field empty.Here " +"the list of possible parameters: \n" +"* `employee_or_category`: employee name or category if leave has no users " +"linked\n" +"* `employee_name`: employee name\n" +"* `category_name`: hr category name (tag)\n" +"* `formatted_duration`: number of ours or days with the unit according the " +"kind of leave\n" +"* `number_of_hours_display`: number of hours\n" +"* `number_of_days`: number of days\n" +"* `start`: start date\n" +"* `stop`: end date\n" +"* `leave_type_name`: leave type name\n" +"* `leave_type_code`: leave type code\n" +"* `leave_name`: leave name\n" +msgstr "" +"Modèle de nom utilisé pour générer le nom de calendrier (format %-string de " +"python), \n" +"ie: '%(employee_name)s en congés : %(formatted_duration)s' qui revient au " +"comportement par défaut d'odoo (comme quand ce champ est vide). \n" +"Voici la liste des paramètres disponibles : \n" +"* `employee_or_category`: Nom de l'employée ou de la catégorie (tag) si la " +"demande \n" +"de congés n'a pas d'utilisateur lié.\n" +"* `employee_name`: nom de l'employé\n" +"* `category_name`: nom de la catégorie (tag)\n" +"* `formatted_duration`: nombre d'heures ou de jours de congés formatté en " +"fonction de l'utité confifuré sur le type\n" +"* `number_of_hours_display`: nombre d'heures de congés\n" +"* `number_of_days`: number de jours de congés\n" +"* `start`: date de début\n" +"* `stop`: date de fin\n" +"* `leave_type_name`: nom du type de congés\n" +"* `leave_type_code`: code du type de congés\n" +"* `leave_name`: nom de la demande de congés\n" + +#. module: hr_holidays_calendar_name +#: model:ir.model,name:hr_holidays_calendar_name.model_hr_leave +msgid "Time Off" +msgstr "Congés" + +#. module: hr_holidays_calendar_name +#: model:ir.model,name:hr_holidays_calendar_name.model_hr_leave_type +msgid "Time Off Type" +msgstr "Type de congés" diff --git a/hr_holidays_calendar_name/i18n/hr_holidays_calendar_name.pot b/hr_holidays_calendar_name/i18n/hr_holidays_calendar_name.pot new file mode 100644 index 00000000..957aab97 --- /dev/null +++ b/hr_holidays_calendar_name/i18n/hr_holidays_calendar_name.pot @@ -0,0 +1,77 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_calendar_name +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.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_holidays_calendar_name +#: code:addons/hr_holidays_calendar_name/models/hr_leave.py:0 +#, python-format +msgid "%.2f day(s)" +msgstr "" + +#. module: hr_holidays_calendar_name +#: code:addons/hr_holidays_calendar_name/models/hr_leave.py:0 +#, python-format +msgid "%.2f hour(s)" +msgstr "" + +#. module: hr_holidays_calendar_name +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave_type__calendar_meeting_leave_template +msgid "Calendar Meeting Leave Template" +msgstr "" + +#. module: hr_holidays_calendar_name +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave__display_name +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave_type__display_name +msgid "Display Name" +msgstr "" + +#. module: hr_holidays_calendar_name +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave__id +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave_type__id +msgid "ID" +msgstr "" + +#. module: hr_holidays_calendar_name +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave____last_update +#: model:ir.model.fields,field_description:hr_holidays_calendar_name.field_hr_leave_type____last_update +msgid "Last Modified on" +msgstr "" + +#. module: hr_holidays_calendar_name +#: model:ir.model.fields,help:hr_holidays_calendar_name.field_hr_leave_type__calendar_meeting_leave_template +msgid "" +"Template used to generate calendar meeting name, \n" +"ie: '%(employee_name)s on Time Off : %(formatted_duration)s' which is roughly the default behavior from odoo if you leave this field empty.Here the list of possible parameters: \n" +"* `employee_or_category`: employee name or category if leave has no users linked\n" +"* `employee_name`: employee name\n" +"* `category_name`: hr category name (tag)\n" +"* `formatted_duration`: number of ours or days with the unit according the kind of leave\n" +"* `number_of_hours_display`: number of hours\n" +"* `number_of_days`: number of days\n" +"* `start`: start date\n" +"* `stop`: end date\n" +"* `leave_type_name`: leave type name\n" +"* `leave_type_code`: leave type code\n" +"* `leave_name`: leave name\n" +msgstr "" + +#. module: hr_holidays_calendar_name +#: model:ir.model,name:hr_holidays_calendar_name.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_calendar_name +#: model:ir.model,name:hr_holidays_calendar_name.model_hr_leave_type +msgid "Time Off Type" +msgstr "" diff --git a/hr_holidays_calendar_name/models/__init__.py b/hr_holidays_calendar_name/models/__init__.py new file mode 100644 index 00000000..775298ac --- /dev/null +++ b/hr_holidays_calendar_name/models/__init__.py @@ -0,0 +1,2 @@ +from . import hr_leave +from . import hr_leave_type diff --git a/hr_holidays_calendar_name/models/hr_leave.py b/hr_holidays_calendar_name/models/hr_leave.py new file mode 100644 index 00000000..79e52032 --- /dev/null +++ b/hr_holidays_calendar_name/models/hr_leave.py @@ -0,0 +1,47 @@ +# Copyright 2023 CGI (https://www.cgi37.com/) +# @author Pierre Verkest +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from odoo import _, models + + +class HrLeave(models.Model): + _inherit = "hr.leave" + + def _prepare_calendar_meeting_leave_name(self, default=""): + self.ensure_one() + if self.holiday_status_id.calendar_meeting_leave_template: + if self.leave_type_request_unit == "hour": + formatted_duration = _("%.2f hour(s)") % (self.number_of_hours_display,) + else: + formatted_duration = _("%.2f day(s)") % (self.number_of_days,) + + return self.holiday_status_id.with_context( + lang=self.user_id.lang + ).calendar_meeting_leave_template % { + "employee_or_category": self.employee_id.name or self.category_id.name, + "employee_name": self.employee_id.name, + "category_name": self.category_id.name, + "formatted_duration": formatted_duration, + "number_of_hours_display": self.number_of_hours_display, + "number_of_days": self.number_of_days, + "start": self.date_from, + "stop": self.date_to, + "leave_type_name": self.holiday_status_id.name, + "leave_type_code": self.holiday_status_id.code, + "leave_name": self.name, + } + return default + + def _prepare_holidays_meeting_values(self): + result = super()._prepare_holidays_meeting_values() + # this is a bit annoyed to loop over results + # and browse leave from it but feel safer and + # cleaner than overwrite the whole method + for _user_id, meetings in result.items(): + for meeting_values in meetings: + leave = self.env["hr.leave"].browse(meeting_values["res_id"]).exists() + if leave: + meeting_values["name"] = leave._prepare_calendar_meeting_leave_name( + default=meeting_values["name"] + ) + return result diff --git a/hr_holidays_calendar_name/models/hr_leave_type.py b/hr_holidays_calendar_name/models/hr_leave_type.py new file mode 100644 index 00000000..98b57b11 --- /dev/null +++ b/hr_holidays_calendar_name/models/hr_leave_type.py @@ -0,0 +1,31 @@ +# Copyright (C) 2018 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class HrLeaveType(models.Model): + _inherit = "hr.leave.type" + + calendar_meeting_leave_template = fields.Char( + translate=True, + help=( + "Template used to generate calendar meeting name, \n" + "ie: '%(employee_name)s on Time Off : %(formatted_duration)s' which is roughly " + "the default behavior from odoo if you leave this field empty." + "Here the list of possible parameters: \n" + "* `employee_or_category`: employee name or category if leave has no users " + "linked\n" + "* `employee_name`: employee name\n" + "* `category_name`: hr category name (tag)\n" + "* `formatted_duration`: number of ours or days with the unit according the " + "kind of leave\n" + "* `number_of_hours_display`: number of hours\n" + "* `number_of_days`: number of days\n" + "* `start`: start date\n" + "* `stop`: end date\n" + "* `leave_type_name`: leave type name\n" + "* `leave_type_code`: leave type code\n" + "* `leave_name`: leave name\n" + ), + ) diff --git a/hr_holidays_calendar_name/readme/CONTRIBUTORS.rst b/hr_holidays_calendar_name/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..638be866 --- /dev/null +++ b/hr_holidays_calendar_name/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Pierre Verkest diff --git a/hr_holidays_calendar_name/readme/DESCRIPTION.rst b/hr_holidays_calendar_name/readme/DESCRIPTION.rst new file mode 100644 index 00000000..89e999de --- /dev/null +++ b/hr_holidays_calendar_name/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +HR Officer can configure calendar template name on leave types to +control labels on generated calendar event label from leaves. diff --git a/hr_holidays_calendar_name/static/description/index.html b/hr_holidays_calendar_name/static/description/index.html new file mode 100644 index 00000000..e397ce67 --- /dev/null +++ b/hr_holidays_calendar_name/static/description/index.html @@ -0,0 +1,422 @@ + + + + + + +Holidays calendar name + + + +
+

Holidays calendar name

+ + +

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

+

HR Officer can configure calendar template name on leave types to +control labels on generated calendar event label from leaves.

+

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

+ +
+
+

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-holidays project on GitHub.

+

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

+
+
+
+ + diff --git a/hr_holidays_calendar_name/tests/__init__.py b/hr_holidays_calendar_name/tests/__init__.py new file mode 100644 index 00000000..4752aaf0 --- /dev/null +++ b/hr_holidays_calendar_name/tests/__init__.py @@ -0,0 +1 @@ +from . import test_hr_leave diff --git a/hr_holidays_calendar_name/tests/test_hr_leave.py b/hr_holidays_calendar_name/tests/test_hr_leave.py new file mode 100644 index 00000000..b5652a70 --- /dev/null +++ b/hr_holidays_calendar_name/tests/test_hr_leave.py @@ -0,0 +1,111 @@ +# Copyright 2023 CGI (https://www.cgi37.com/) +# @author Pierre Verkest +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from parameterized import parameterized + +from odoo.tests.common import SavepointCase + + +class TestHrLeaveCalendarMeeting(SavepointCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.leave_type = cls.env["hr.leave.type"].create( + { + "name": "Remote test 1", + "code": "REM1", + "request_unit": "half_day", + "color_name": "blue", + "allocation_type": "fixed", + "leave_validation_type": "no_validation", + "create_calendar_meeting": True, + "calendar_meeting_leave_template": ( + "%(employee_name)s on %(leave_type_code)s: %(formatted_duration)s", + ), + } + ) + + cls.test_user_id = cls.env["res.users"].create( + {"name": "Test User", "login": "test_user", "email": "mymail@test.com"} + ) + cls.test_employee_id = cls.env["hr.employee"].create( + {"name": "Test Employee", "user_id": cls.test_user_id.id} + ) + + cls.leave_allocation1 = cls.env["hr.leave.allocation"].create( + { + "name": "Test Allocation Request 1", + "holiday_status_id": cls.leave_type.id, + "holiday_type": "employee", + "employee_id": cls.test_employee_id.id, + "number_of_days": 10, + } + ) + cls.leave_allocation1.action_approve() + cls.leave_1 = cls.env["hr.leave"].create( + { + "name": "Test Leave Request 1", + "holiday_status_id": cls.leave_type.id, + "holiday_type": "employee", + "date_from": "2023-06-15", + "date_to": "2023-06-17", + "employee_id": cls.test_employee_id.id, + } + ) + + @parameterized.expand( + [ + ( + "", + "Test Employee on Time Off : 2.00 day(s)", + ), + ( + "%(employee_name)s on %(leave_type_code)s: %(formatted_duration)s", + "Test Employee on REM1: 2.00 day(s)", + ), + ( + "%(employee_or_category)s", + "Test Employee", + ), + ( + "%(number_of_hours_display).2f", + "16.00", + ), + ( + "%(number_of_days).2f", + "2.00", + ), + ( + "%(start)s", + "2023-06-15 00:00:00", + ), + ( + "%(stop)s", + "2023-06-17 00:00:00", + ), + ( + "%(leave_type_name)s", + "Remote test 1", + ), + ( + "%(leave_type_code)s", + "REM1", + ), + ( + "%(leave_name)s", + "Test Leave Request 1", + ), + ] + ) + def test_calendar_meeting_name_from_template(self, template, expected): + self.leave_type.calendar_meeting_leave_template = template + self.leave_1.action_validate() + self.assertEqual(self.leave_1.meeting_id.name, expected) + + def test_calendar_meeting_name_from_template_hout_type(self): + self.leave_type.request_unit = "hour" + self.leave_1.action_validate() + self.assertEqual( + self.leave_1.meeting_id.name, "Test Employee on REM1: 16.00 hour(s)" + ) diff --git a/hr_holidays_calendar_name/views/hr_leave_type.xml b/hr_holidays_calendar_name/views/hr_leave_type.xml new file mode 100644 index 00000000..2ea3b376 --- /dev/null +++ b/hr_holidays_calendar_name/views/hr_leave_type.xml @@ -0,0 +1,22 @@ + + + + + + hr.leave.type.form + hr.leave.type + + + + + + + + diff --git a/setup/hr_holidays_calendar_name/odoo/addons/hr_holidays_calendar_name b/setup/hr_holidays_calendar_name/odoo/addons/hr_holidays_calendar_name new file mode 120000 index 00000000..8e67669b --- /dev/null +++ b/setup/hr_holidays_calendar_name/odoo/addons/hr_holidays_calendar_name @@ -0,0 +1 @@ +../../../../hr_holidays_calendar_name \ No newline at end of file diff --git a/setup/hr_holidays_calendar_name/setup.py b/setup/hr_holidays_calendar_name/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/hr_holidays_calendar_name/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 00000000..f543eed1 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +parameterized