From 4960e6c5ef2ebd2257a120d30920bb887400ba66 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 31 Oct 2024 17:11:05 +0100 Subject: [PATCH 01/11] [ADD] hr_shift_holidays_public: New module TT50623 [UPD] Update hr_shift_holidays_public.pot [BOT] post-merge updates --- hr_shift_holidays_public/README.rst | 90 ++++ hr_shift_holidays_public/__init__.py | 1 + hr_shift_holidays_public/__manifest__.py | 13 + .../i18n/hr_shift_holidays_public.pot | 34 ++ hr_shift_holidays_public/models/__init__.py | 1 + .../models/shift_planning_line.py | 14 + .../readme/CONTRIBUTORS.md | 3 + .../readme/DESCRIPTION.md | 1 + hr_shift_holidays_public/readme/USAGE.md | 4 + .../static/description/icon.png | Bin 0 -> 10254 bytes .../static/description/index.html | 435 ++++++++++++++++++ .../static/description/public_holidays.png | Bin 0 -> 20394 bytes 12 files changed, 596 insertions(+) create mode 100644 hr_shift_holidays_public/README.rst create mode 100644 hr_shift_holidays_public/__init__.py create mode 100644 hr_shift_holidays_public/__manifest__.py create mode 100644 hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot create mode 100644 hr_shift_holidays_public/models/__init__.py create mode 100644 hr_shift_holidays_public/models/shift_planning_line.py create mode 100644 hr_shift_holidays_public/readme/CONTRIBUTORS.md create mode 100644 hr_shift_holidays_public/readme/DESCRIPTION.md create mode 100644 hr_shift_holidays_public/readme/USAGE.md create mode 100644 hr_shift_holidays_public/static/description/icon.png create mode 100644 hr_shift_holidays_public/static/description/index.html create mode 100644 hr_shift_holidays_public/static/description/public_holidays.png diff --git a/hr_shift_holidays_public/README.rst b/hr_shift_holidays_public/README.rst new file mode 100644 index 0000000..ccb5067 --- /dev/null +++ b/hr_shift_holidays_public/README.rst @@ -0,0 +1,90 @@ +==================================== +Employees Shifts and public holidays +==================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:bbcf0eb8dd5efd024702e7cbabda28ed5cad078f47794064bfdb1b2101c958ae + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fshift--planning-lightgray.png?logo=github + :target: https://github.com/OCA/shift-planning/tree/14.0/hr_shift_holidays_public + :alt: OCA/shift-planning +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/shift-planning-14-0/shift-planning-14-0-hr_shift_holidays_public + :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/shift-planning&target_branch=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Avoid assigning shifts on public holidays. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +When there's a public holiday for an employees work address no shift +will be assigned for that day. Those days will be marked as black in the +assingment card. + +|Public holidays in shift cards| + +.. |Public holidays in shift cards| image:: https://raw.githubusercontent.com/OCA/shift-planning/14.0/hr_shift_holidays_public/static/description/public_holidays.png + +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 +------- + +* Tecnativa + +Contributors +------------ + +- `Tecnativa `__: + + - David Vidal + - Pedro M. Baeza + +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/shift-planning `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_shift_holidays_public/__init__.py b/hr_shift_holidays_public/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/hr_shift_holidays_public/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/hr_shift_holidays_public/__manifest__.py b/hr_shift_holidays_public/__manifest__.py new file mode 100644 index 0000000..6e1c2c5 --- /dev/null +++ b/hr_shift_holidays_public/__manifest__.py @@ -0,0 +1,13 @@ +# Copyright 2024 Tecnativa - David Vidal +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Employees Shifts and public holidays", + "summary": "Avoid planning shifts on holidays", + "version": "14.0.1.0.0", + "author": "Tecnativa, Odoo Community Association (OCA)", + "license": "AGPL-3", + "website": "https://github.com/OCA/shift-planning", + "category": "Marketing", + "depends": ["hr_holidays_public", "hr_shift"], + "data": [], +} diff --git a/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot b/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot new file mode 100644 index 0000000..58a24f0 --- /dev/null +++ b/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_shift_holidays_public +# +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_shift_holidays_public +#: model:ir.model.fields,field_description:hr_shift_holidays_public.field_hr_shift_planning_line__display_name +msgid "Display Name" +msgstr "" + +#. module: hr_shift_holidays_public +#: model:ir.model.fields,field_description:hr_shift_holidays_public.field_hr_shift_planning_line__id +msgid "ID" +msgstr "" + +#. module: hr_shift_holidays_public +#: model:ir.model.fields,field_description:hr_shift_holidays_public.field_hr_shift_planning_line____last_update +msgid "Last Modified on" +msgstr "" + +#. module: hr_shift_holidays_public +#: model:ir.model,name:hr_shift_holidays_public.model_hr_shift_planning_line +msgid "Shift of the day for the employee" +msgstr "" diff --git a/hr_shift_holidays_public/models/__init__.py b/hr_shift_holidays_public/models/__init__.py new file mode 100644 index 0000000..5374e2e --- /dev/null +++ b/hr_shift_holidays_public/models/__init__.py @@ -0,0 +1 @@ +from . import shift_planning_line diff --git a/hr_shift_holidays_public/models/shift_planning_line.py b/hr_shift_holidays_public/models/shift_planning_line.py new file mode 100644 index 0000000..c2716ed --- /dev/null +++ b/hr_shift_holidays_public/models/shift_planning_line.py @@ -0,0 +1,14 @@ +# Copyright 2024 Tecnativa - David Vidal +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from odoo import models + + +class ShiftPlanningLine(models.Model): + _inherit = "hr.shift.planning.line" + + def _is_public_holiday(self): + if not (self.start_date and self.employee_id): + return False + return self.env["hr.holidays.public"].is_public_holiday( + self.start_date, self.employee_id.id + ) diff --git a/hr_shift_holidays_public/readme/CONTRIBUTORS.md b/hr_shift_holidays_public/readme/CONTRIBUTORS.md new file mode 100644 index 0000000..0678f4f --- /dev/null +++ b/hr_shift_holidays_public/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [Tecnativa](https://tecnativa.com): + - David Vidal + - Pedro M. Baeza diff --git a/hr_shift_holidays_public/readme/DESCRIPTION.md b/hr_shift_holidays_public/readme/DESCRIPTION.md new file mode 100644 index 0000000..cbd2374 --- /dev/null +++ b/hr_shift_holidays_public/readme/DESCRIPTION.md @@ -0,0 +1 @@ +Avoid assigning shifts on public holidays. diff --git a/hr_shift_holidays_public/readme/USAGE.md b/hr_shift_holidays_public/readme/USAGE.md new file mode 100644 index 0000000..9f793d8 --- /dev/null +++ b/hr_shift_holidays_public/readme/USAGE.md @@ -0,0 +1,4 @@ +When there's a public holiday for an employees work address no shift will be assigned +for that day. Those days will be marked as black in the assingment card. + +![Public holidays in shift cards](../static/description/public_holidays.png) diff --git a/hr_shift_holidays_public/static/description/icon.png b/hr_shift_holidays_public/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1dcc49c24f364e9adf0afbc6fc0bac6dbecdeb11 GIT binary patch literal 10254 zcmbt)WmufcvhH9Zc!C8B?l8#UE&&o;gF7=g3=D(IAOS+K1lK^25Zv7%L4sRw_uvvF z*qyAk?>c**=lnR&y+1yw{;I3Hy6Ua2{<d0kcR+VvBo; zA_X`>;1;xAPL9rQqFxd#f5{a^zW*uaW+r3+U{|fRunu`GZhy$X z8_|Zi{zd#vIokczl8Xh*4Wi@i0+C?Rg1AB5VOEg8B>buLFCi~r5DPd2ED7QP2>^LO zKpr7+?*I1bPaFSLLEa0l2$tj*;u8Qtc=&(RUc*VK@ zjIN{I--GfO@vl+&r^eqy_BZ3dndN_PDzMc*W^!?dIsWAWU@LBjBg6^f4F6*!-hUYh zY$Xb}gF8b0%S1Ac@c%Rs()UCiEu3v6SiFE>h_!{gBb-H2{e=wB5o!YkT0>#LKZFw$ z?CuD0Gvfsb(|XbVxx0AL0%`gG2X+6|f;jiTHU9shtjoW-{2!| zMN*WuOj6elhD4zqgjNpX>F#JP{)hAbenX<+FPr>7jXM&q{|x+pbj8cU<=>Ej zWE1_%qoFVzDAZB%g@v<+1ud%<#2E~ML11jOV5pUZoXktGmzB38%te^i-3o9i$lge>z>tBcK|P2K0H9w{l#|i%$~egM)Ys{q>p<9yaE*%v2cy1wXE{AXqG1_b znfyg@Fq*e@yC)^(@$R*j^E;skyEM6pmL$1ctg*mWiWM&q1{nj>E^)Odw$RPr zhjesSk}k}@-e_%uZTy0t_*TJD&6%*HV0KH>xE@oBex6CL@`Ty3nH_2OF#M?6j(j|9 znRKGSfp3Q2i+|>}w?>8g$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$|K{py5akJa zkezmqhN)>MGMp$7=sOo2(7ppv``dCIwf&MaQQis7S596kkiw8Do(jO?EY4iJ4Hec6 z4Hymzu`w)cI9Pbq6GPtTP)x&Lmk;FT=ZCB4>(5}c0?;2l`p&?>&<;2(P8a3lOTNP# zdEzF5qDpkRR&PZC&cS{7xD@qV;(g5X%xI?m$9Q + + + + +Employees Shifts and public holidays + + + +
+

Employees Shifts and public holidays

+ + +

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

+

Avoid assigning shifts on public holidays.

+

Table of contents

+ +
+

Usage

+

When there’s a public holiday for an employees work address no shift +will be assigned for that day. Those days will be marked as black in the +assingment card.

+

Public holidays in shift cards

+
+
+

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

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+
    +
  • Tecnativa:
      +
    • David Vidal
    • +
    • Pedro M. Baeza
    • +
    +
  • +
+
+
+

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/shift-planning project on GitHub.

+

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

+
+
+
+ + diff --git a/hr_shift_holidays_public/static/description/public_holidays.png b/hr_shift_holidays_public/static/description/public_holidays.png new file mode 100644 index 0000000000000000000000000000000000000000..19f6c1cea0fb92492a6f2935afebd0ac0fac9bd6 GIT binary patch literal 20394 zcmZ_0WmuKnxAwgV5s;Sd5|EIPZfTH^knZm8M(GrhZV-?L>Fz~?h_rNfcRiE)zwh^X z_dcF|ebB`^aIGum7~>rC{0+lC$V;Lk6Cy((5L9U?F(n8DHW0kdM1%!@9%|`XfWP3J zM5I*^5fSH>6_&t{7|!DA&dPSC&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pQAPAcF*VJ4OUb}ed zQg^H@r(#<%0ff6hwAG(%gggCDvIoOk6u4S5JZ2!rM|vv z%hp1QqJ6%=iO(AD-)y_h9o(M7hc4FCbZma%5#xZ(>GVvdJ5pWUQd*Lmm#5@#*{7=~ zxN-zdUe}0;0XQ?*7W(1d?z3;Go-AFE&1Z4;>b?x#{4;F_40Z3M|Dto`wwW4X5mU?f z_m-YNFIj)UaJQFs*{a_xUwNp%9soQ6-*2@iUQb!;4fwb$a$oOx%s6H|(hy$nm`!i* z>dQ@6Px#edgE8{oPB?d7p$GuSKCVhmTsZE-J-a`}vN2U}{b^H#Y)Nx_SGrp9KV8KS zXFT%XPB?d7p@cLNg4DF+vC-gvA&kgb>1Fj1WQyAuPrSA%qYX<4JHh zT-aU_#b&{~X3>LW1vfTAgk{`PRgb+elj1fWz zA%w*kA%qZ`o5=e=YHshsc0p(s!;B;Je^89^fdB~2?lOrPM<~)Vj>FUlA%xHj!(xmO dLI};U{{jM1?89R%^uz!F002ovPDHLkV1n|y_Q(JL literal 0 HcmV?d00001 From ff54b20a8540f6db4ae4f5833b502c76f5190f16 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 13 Jan 2025 12:50:48 +0100 Subject: [PATCH 02/11] [MIG] hr_shift_holidays_public: Migration to 15.0 TT52286 --- hr_shift_holidays_public/README.rst | 18 +++++----- hr_shift_holidays_public/__manifest__.py | 2 +- .../static/description/index.html | 8 ++--- hr_shift_holidays_public/tests/__init__.py | 4 +++ .../tests/test_hr_shift_holidays_public.py | 33 +++++++++++++++++++ 5 files changed, 51 insertions(+), 14 deletions(-) create mode 100644 hr_shift_holidays_public/tests/__init__.py create mode 100644 hr_shift_holidays_public/tests/test_hr_shift_holidays_public.py diff --git a/hr_shift_holidays_public/README.rst b/hr_shift_holidays_public/README.rst index ccb5067..8418722 100644 --- a/hr_shift_holidays_public/README.rst +++ b/hr_shift_holidays_public/README.rst @@ -17,13 +17,13 @@ Employees Shifts and public holidays :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fshift--planning-lightgray.png?logo=github - :target: https://github.com/OCA/shift-planning/tree/14.0/hr_shift_holidays_public + :target: https://github.com/OCA/shift-planning/tree/15.0/hr_shift_holidays_public :alt: OCA/shift-planning .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/shift-planning-14-0/shift-planning-14-0-hr_shift_holidays_public + :target: https://translation.odoo-community.org/projects/shift-planning-15-0/shift-planning-15-0-hr_shift_holidays_public :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/shift-planning&target_branch=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/shift-planning&target_branch=15.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -44,7 +44,7 @@ assingment card. |Public holidays in shift cards| -.. |Public holidays in shift cards| image:: https://raw.githubusercontent.com/OCA/shift-planning/14.0/hr_shift_holidays_public/static/description/public_holidays.png +.. |Public holidays in shift cards| image:: https://raw.githubusercontent.com/OCA/shift-planning/15.0/hr_shift_holidays_public/static/description/public_holidays.png Bug Tracker =========== @@ -52,7 +52,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -67,10 +67,10 @@ Authors Contributors ------------ -- `Tecnativa `__: +- `Tecnativa `__: - - David Vidal - - Pedro M. Baeza + - David Vidal + - Pedro M. Baeza Maintainers ----------- @@ -85,6 +85,6 @@ 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/shift-planning `_ project on GitHub. +This module is part of the `OCA/shift-planning `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_shift_holidays_public/__manifest__.py b/hr_shift_holidays_public/__manifest__.py index 6e1c2c5..932e97f 100644 --- a/hr_shift_holidays_public/__manifest__.py +++ b/hr_shift_holidays_public/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Employees Shifts and public holidays", "summary": "Avoid planning shifts on holidays", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "author": "Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", "website": "https://github.com/OCA/shift-planning", diff --git a/hr_shift_holidays_public/static/description/index.html b/hr_shift_holidays_public/static/description/index.html index fa3f860..92c422b 100644 --- a/hr_shift_holidays_public/static/description/index.html +++ b/hr_shift_holidays_public/static/description/index.html @@ -369,7 +369,7 @@

Employees Shifts and public holidays

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:bbcf0eb8dd5efd024702e7cbabda28ed5cad078f47794064bfdb1b2101c958ae !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -
+

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

Avoid assigning shifts on public holidays.

Table of contents

@@ -389,14 +389,14 @@

Usage

When there’s a public holiday for an employees work address no shift will be assigned for that day. Those days will be marked as black in the assingment card.

-

Public holidays in shift cards

+

Public holidays in shift cards

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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -426,7 +426,7 @@

Maintainers

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/shift-planning project on GitHub.

+

This module is part of the OCA/shift-planning project on GitHub.

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

diff --git a/hr_shift_holidays_public/tests/__init__.py b/hr_shift_holidays_public/tests/__init__.py new file mode 100644 index 0000000..9b03a7d --- /dev/null +++ b/hr_shift_holidays_public/tests/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2025 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_hr_shift_holidays_public diff --git a/hr_shift_holidays_public/tests/test_hr_shift_holidays_public.py b/hr_shift_holidays_public/tests/test_hr_shift_holidays_public.py new file mode 100644 index 0000000..1d5dfcc --- /dev/null +++ b/hr_shift_holidays_public/tests/test_hr_shift_holidays_public.py @@ -0,0 +1,33 @@ +# Copyright 2025 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo.addons.hr_shift.tests.common import TestHrShiftBase + + +class TestHrShiftHolidaysPublic(TestHrShiftBase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.planning = cls.env["hr.shift.planning"].create( + { + "year": 2025, + "week_number": 3, + "start_date": "2025-01-13", + "end_date": "2025-01-19", + } + ) + cls.env["hr.holidays.public"].create( + { + "year": 2025, + "line_ids": [(0, 0, {"date": "2025-01-14", "name": "Test line"})], + } + ) + + def test_hr_shift_planning_holiday_public(self): + self.planning.generate_shifts() + shift_a = self.planning.shift_ids.filtered( + lambda x: x.employee_id == self.employee_a + ) + shift_a_line_0 = shift_a.line_ids.filtered(lambda x: x.day_number == "0") + self.assertEqual(shift_a_line_0.state, "unassigned") + shift_a_line_1 = shift_a.line_ids.filtered(lambda x: x.day_number == "1") + self.assertEqual(shift_a_line_1.state, "holiday") From 44acf2e7c79bd1611e0331563210148a43096cd0 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Thu, 5 Jun 2025 08:57:12 +0000 Subject: [PATCH 03/11] [UPD] Update hr_shift_holidays_public.pot --- .../i18n/hr_shift_holidays_public.pot | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot b/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot index 58a24f0..79a4d38 100644 --- a/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot +++ b/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -13,21 +13,6 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: hr_shift_holidays_public -#: model:ir.model.fields,field_description:hr_shift_holidays_public.field_hr_shift_planning_line__display_name -msgid "Display Name" -msgstr "" - -#. module: hr_shift_holidays_public -#: model:ir.model.fields,field_description:hr_shift_holidays_public.field_hr_shift_planning_line__id -msgid "ID" -msgstr "" - -#. module: hr_shift_holidays_public -#: model:ir.model.fields,field_description:hr_shift_holidays_public.field_hr_shift_planning_line____last_update -msgid "Last Modified on" -msgstr "" - #. module: hr_shift_holidays_public #: model:ir.model,name:hr_shift_holidays_public.model_hr_shift_planning_line msgid "Shift of the day for the employee" From 9f753a6209d2f5dfaa5439e4f1ce0a99bbe39fcc Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 5 Jun 2025 08:58:58 +0000 Subject: [PATCH 04/11] [BOT] post-merge updates --- hr_shift_holidays_public/README.rst | 14 ++++++---- .../static/description/index.html | 28 +++++++++++-------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/hr_shift_holidays_public/README.rst b/hr_shift_holidays_public/README.rst index 8418722..61651e3 100644 --- a/hr_shift_holidays_public/README.rst +++ b/hr_shift_holidays_public/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ==================================== Employees Shifts and public holidays ==================================== @@ -7,13 +11,13 @@ Employees Shifts and public holidays !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:bbcf0eb8dd5efd024702e7cbabda28ed5cad078f47794064bfdb1b2101c958ae + !! source digest: sha256:a8a3016ab1ba6db035b1232c986ab0ff276fdfaf239c410933b39d73f3f99974 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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 +.. |badge2| image:: https://img.shields.io/badge/license-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%2Fshift--planning-lightgray.png?logo=github @@ -67,10 +71,10 @@ Authors Contributors ------------ -- `Tecnativa `__: +- `Tecnativa `__: - - David Vidal - - Pedro M. Baeza + - David Vidal + - Pedro M. Baeza Maintainers ----------- diff --git a/hr_shift_holidays_public/static/description/index.html b/hr_shift_holidays_public/static/description/index.html index 92c422b..59e0c9a 100644 --- a/hr_shift_holidays_public/static/description/index.html +++ b/hr_shift_holidays_public/static/description/index.html @@ -3,7 +3,7 @@ -Employees Shifts and public holidays +README.rst -
-

Employees Shifts and public holidays

+
+ + +Odoo Community Association + +
+

Employees Shifts and public holidays

-

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

+

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

Avoid assigning shifts on public holidays.

Table of contents

@@ -385,14 +390,14 @@

Employees Shifts and public holidays

-

Usage

+

Usage

When there’s a public holiday for an employees work address no shift will be assigned for that day. Those days will be marked as black in the assingment card.

Public holidays in shift cards

-

Bug Tracker

+

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 @@ -400,15 +405,15 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Tecnativa
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -431,5 +436,6 @@

Maintainers

+
From 9491e9926e0643aa5f79ea7ce023d8dcc4cfb126 Mon Sep 17 00:00:00 2001 From: Abraham Anes Date: Sun, 31 Aug 2025 18:33:21 +0200 Subject: [PATCH 05/11] [IMP] hr_shift_holidays_public: pre-commit auto fixes --- hr_shift_holidays_public/pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 hr_shift_holidays_public/pyproject.toml diff --git a/hr_shift_holidays_public/pyproject.toml b/hr_shift_holidays_public/pyproject.toml new file mode 100644 index 0000000..4231d0c --- /dev/null +++ b/hr_shift_holidays_public/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" From 8a8f0c42894869945f67c5fec234450dd2d4e053 Mon Sep 17 00:00:00 2001 From: Abraham Anes Date: Sun, 31 Aug 2025 18:39:23 +0200 Subject: [PATCH 06/11] [17.0][MIG] hr_shift_holidays_public: Migration to 17.0 --- hr_shift_holidays_public/README.rst | 22 ++++++------ hr_shift_holidays_public/__manifest__.py | 2 +- .../readme/CONTRIBUTORS.md | 2 ++ .../static/description/index.html | 36 +++++++++---------- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/hr_shift_holidays_public/README.rst b/hr_shift_holidays_public/README.rst index 61651e3..0517f7d 100644 --- a/hr_shift_holidays_public/README.rst +++ b/hr_shift_holidays_public/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ==================================== Employees Shifts and public holidays ==================================== @@ -17,17 +13,17 @@ Employees Shifts and public holidays .. |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/license-AGPL--3-blue.png +.. |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%2Fshift--planning-lightgray.png?logo=github - :target: https://github.com/OCA/shift-planning/tree/15.0/hr_shift_holidays_public + :target: https://github.com/OCA/shift-planning/tree/17.0/hr_shift_holidays_public :alt: OCA/shift-planning .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/shift-planning-15-0/shift-planning-15-0-hr_shift_holidays_public + :target: https://translation.odoo-community.org/projects/shift-planning-17-0/shift-planning-17-0-hr_shift_holidays_public :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/shift-planning&target_branch=15.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/shift-planning&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -48,7 +44,7 @@ assingment card. |Public holidays in shift cards| -.. |Public holidays in shift cards| image:: https://raw.githubusercontent.com/OCA/shift-planning/15.0/hr_shift_holidays_public/static/description/public_holidays.png +.. |Public holidays in shift cards| image:: https://raw.githubusercontent.com/OCA/shift-planning/17.0/hr_shift_holidays_public/static/description/public_holidays.png Bug Tracker =========== @@ -56,7 +52,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -76,6 +72,10 @@ Contributors - David Vidal - Pedro M. Baeza +- `Tesseratech `__: + + - Abraham Anes + Maintainers ----------- @@ -89,6 +89,6 @@ 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/shift-planning `_ project on GitHub. +This module is part of the `OCA/shift-planning `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_shift_holidays_public/__manifest__.py b/hr_shift_holidays_public/__manifest__.py index 932e97f..291c174 100644 --- a/hr_shift_holidays_public/__manifest__.py +++ b/hr_shift_holidays_public/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Employees Shifts and public holidays", "summary": "Avoid planning shifts on holidays", - "version": "15.0.1.0.0", + "version": "17.0.1.0.0", "author": "Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", "website": "https://github.com/OCA/shift-planning", diff --git a/hr_shift_holidays_public/readme/CONTRIBUTORS.md b/hr_shift_holidays_public/readme/CONTRIBUTORS.md index 0678f4f..3a9236d 100644 --- a/hr_shift_holidays_public/readme/CONTRIBUTORS.md +++ b/hr_shift_holidays_public/readme/CONTRIBUTORS.md @@ -1,3 +1,5 @@ - [Tecnativa](https://tecnativa.com): - David Vidal - Pedro M. Baeza +- [Tesseratech](https://www.tesseratech.es): + - Abraham Anes diff --git a/hr_shift_holidays_public/static/description/index.html b/hr_shift_holidays_public/static/description/index.html index 59e0c9a..ebabfd4 100644 --- a/hr_shift_holidays_public/static/description/index.html +++ b/hr_shift_holidays_public/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Employees Shifts and public holidays -
+
+

Employees Shifts and public holidays

- - -Odoo Community Association - -
-

Employees Shifts and public holidays

-

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

+

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

Avoid assigning shifts on public holidays.

Table of contents

@@ -390,40 +385,44 @@

Employees Shifts and public holidays

-

Usage

+

Usage

When there’s a public holiday for an employees work address no shift will be assigned for that day. Those days will be marked as black in the assingment card.

-

Public holidays in shift cards

+

Public holidays in shift cards

-

Bug Tracker

+

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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Tecnativa
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -431,11 +430,10 @@

Maintainers

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/shift-planning project on GitHub.

+

This module is part of the OCA/shift-planning project on GitHub.

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

-
From 855c4e0edadaf8a0e7ad2eff0347930b183e29db Mon Sep 17 00:00:00 2001 From: oca-ci Date: Mon, 1 Sep 2025 09:03:59 +0000 Subject: [PATCH 07/11] [UPD] Update hr_shift_holidays_public.pot --- hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot b/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot index 79a4d38..ee6643e 100644 --- a/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot +++ b/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 15.0\n" +"Project-Id-Version: Odoo Server 17.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" From 20f7dd79c69988f33a7af19d49f60e26628e62e7 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 1 Sep 2025 09:05:53 +0000 Subject: [PATCH 08/11] [BOT] post-merge updates --- hr_shift_holidays_public/README.rst | 8 ++++-- .../static/description/index.html | 28 +++++++++++-------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/hr_shift_holidays_public/README.rst b/hr_shift_holidays_public/README.rst index 0517f7d..7854fd6 100644 --- a/hr_shift_holidays_public/README.rst +++ b/hr_shift_holidays_public/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ==================================== Employees Shifts and public holidays ==================================== @@ -7,13 +11,13 @@ Employees Shifts and public holidays !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:a8a3016ab1ba6db035b1232c986ab0ff276fdfaf239c410933b39d73f3f99974 + !! source digest: sha256:dd8cbfedc079699e1b3181b1f08c5c0974f616613dfdc2060e56681b7d5a4266 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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 +.. |badge2| image:: https://img.shields.io/badge/license-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%2Fshift--planning-lightgray.png?logo=github diff --git a/hr_shift_holidays_public/static/description/index.html b/hr_shift_holidays_public/static/description/index.html index ebabfd4..430f463 100644 --- a/hr_shift_holidays_public/static/description/index.html +++ b/hr_shift_holidays_public/static/description/index.html @@ -3,7 +3,7 @@ -Employees Shifts and public holidays +README.rst -
-

Employees Shifts and public holidays

+
+ + +Odoo Community Association + +
+

Employees Shifts and public holidays

-

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

+

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

Avoid assigning shifts on public holidays.

Table of contents

@@ -385,14 +390,14 @@

Employees Shifts and public holidays

-

Usage

+

Usage

When there’s a public holiday for an employees work address no shift will be assigned for that day. Those days will be marked as black in the assingment card.

Public holidays in shift cards

-

Bug Tracker

+

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 @@ -400,15 +405,15 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Tecnativa
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -435,5 +440,6 @@

Maintainers

+
From fa26713d986471181c557a3a5aa4faf38204f4eb Mon Sep 17 00:00:00 2001 From: mymage Date: Tue, 2 Sep 2025 13:53:38 +0000 Subject: [PATCH 09/11] Added translation using Weblate (Italian) --- hr_shift_holidays_public/i18n/it.po | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 hr_shift_holidays_public/i18n/it.po diff --git a/hr_shift_holidays_public/i18n/it.po b/hr_shift_holidays_public/i18n/it.po new file mode 100644 index 0000000..ab84af7 --- /dev/null +++ b/hr_shift_holidays_public/i18n/it.po @@ -0,0 +1,20 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_shift_holidays_public +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\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_shift_holidays_public +#: model:ir.model,name:hr_shift_holidays_public.model_hr_shift_planning_line +msgid "Shift of the day for the employee" +msgstr "" From f1185e2d42b3df35eaa4901cc17188d2885e9e4d Mon Sep 17 00:00:00 2001 From: Abraham Anes Date: Sun, 7 Sep 2025 23:05:15 +0200 Subject: [PATCH 10/11] [18.0][MIG] hr_shift_holidays_public: Migration to 18.0 --- hr_shift_holidays_public/README.rst | 18 ++++------- hr_shift_holidays_public/__manifest__.py | 4 +-- .../models/shift_planning_line.py | 2 +- .../static/description/index.html | 32 ++++++++----------- .../tests/test_hr_shift_holidays_public.py | 2 +- 5 files changed, 24 insertions(+), 34 deletions(-) diff --git a/hr_shift_holidays_public/README.rst b/hr_shift_holidays_public/README.rst index 7854fd6..a2cffde 100644 --- a/hr_shift_holidays_public/README.rst +++ b/hr_shift_holidays_public/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ==================================== Employees Shifts and public holidays ==================================== @@ -17,17 +13,17 @@ Employees Shifts and public holidays .. |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/license-AGPL--3-blue.png +.. |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%2Fshift--planning-lightgray.png?logo=github - :target: https://github.com/OCA/shift-planning/tree/17.0/hr_shift_holidays_public + :target: https://github.com/OCA/shift-planning/tree/18.0/hr_shift_holidays_public :alt: OCA/shift-planning .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/shift-planning-17-0/shift-planning-17-0-hr_shift_holidays_public + :target: https://translation.odoo-community.org/projects/shift-planning-18-0/shift-planning-18-0-hr_shift_holidays_public :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/shift-planning&target_branch=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/shift-planning&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -48,7 +44,7 @@ assingment card. |Public holidays in shift cards| -.. |Public holidays in shift cards| image:: https://raw.githubusercontent.com/OCA/shift-planning/17.0/hr_shift_holidays_public/static/description/public_holidays.png +.. |Public holidays in shift cards| image:: https://raw.githubusercontent.com/OCA/shift-planning/18.0/hr_shift_holidays_public/static/description/public_holidays.png Bug Tracker =========== @@ -56,7 +52,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -93,6 +89,6 @@ 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/shift-planning `_ project on GitHub. +This module is part of the `OCA/shift-planning `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_shift_holidays_public/__manifest__.py b/hr_shift_holidays_public/__manifest__.py index 291c174..06524ff 100644 --- a/hr_shift_holidays_public/__manifest__.py +++ b/hr_shift_holidays_public/__manifest__.py @@ -3,11 +3,11 @@ { "name": "Employees Shifts and public holidays", "summary": "Avoid planning shifts on holidays", - "version": "17.0.1.0.0", + "version": "18.0.1.0.0", "author": "Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", "website": "https://github.com/OCA/shift-planning", "category": "Marketing", - "depends": ["hr_holidays_public", "hr_shift"], + "depends": ["calendar_public_holiday", "hr_shift"], "data": [], } diff --git a/hr_shift_holidays_public/models/shift_planning_line.py b/hr_shift_holidays_public/models/shift_planning_line.py index c2716ed..9e285bc 100644 --- a/hr_shift_holidays_public/models/shift_planning_line.py +++ b/hr_shift_holidays_public/models/shift_planning_line.py @@ -9,6 +9,6 @@ class ShiftPlanningLine(models.Model): def _is_public_holiday(self): if not (self.start_date and self.employee_id): return False - return self.env["hr.holidays.public"].is_public_holiday( + return self.env["calendar.public.holiday"].is_public_holiday( self.start_date, self.employee_id.id ) diff --git a/hr_shift_holidays_public/static/description/index.html b/hr_shift_holidays_public/static/description/index.html index 430f463..9229f83 100644 --- a/hr_shift_holidays_public/static/description/index.html +++ b/hr_shift_holidays_public/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Employees Shifts and public holidays -
+
+

Employees Shifts and public holidays

- - -Odoo Community Association - -
-

Employees Shifts and public holidays

-

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

+

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

Avoid assigning shifts on public holidays.

Table of contents

@@ -390,30 +385,30 @@

Employees Shifts and public holidays

-

Usage

+

Usage

When there’s a public holiday for an employees work address no shift will be assigned for that day. Those days will be marked as black in the assingment card.

-

Public holidays in shift cards

+

Public holidays in shift cards

-

Bug Tracker

+

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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Tecnativa
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -435,11 +430,10 @@

Maintainers

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/shift-planning project on GitHub.

+

This module is part of the OCA/shift-planning project on GitHub.

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

-
diff --git a/hr_shift_holidays_public/tests/test_hr_shift_holidays_public.py b/hr_shift_holidays_public/tests/test_hr_shift_holidays_public.py index 1d5dfcc..e92cfee 100644 --- a/hr_shift_holidays_public/tests/test_hr_shift_holidays_public.py +++ b/hr_shift_holidays_public/tests/test_hr_shift_holidays_public.py @@ -15,7 +15,7 @@ def setUpClass(cls): "end_date": "2025-01-19", } ) - cls.env["hr.holidays.public"].create( + cls.env["calendar.public.holiday"].create( { "year": 2025, "line_ids": [(0, 0, {"date": "2025-01-14", "name": "Test line"})], From cd9929d2ff089813f1ae9b8de9c79e4e2451936c Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 4 Feb 2026 10:03:40 -0500 Subject: [PATCH 11/11] [UPD] hr_shift_holidays_public: i18n odoo 18 --- hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot | 2 +- hr_shift_holidays_public/i18n/it.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot b/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot index ee6643e..3681f40 100644 --- a/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot +++ b/hr_shift_holidays_public/i18n/hr_shift_holidays_public.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 17.0\n" +"Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/hr_shift_holidays_public/i18n/it.po b/hr_shift_holidays_public/i18n/it.po index ab84af7..db071d4 100644 --- a/hr_shift_holidays_public/i18n/it.po +++ b/hr_shift_holidays_public/i18n/it.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 17.0\n" +"Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: Automatically generated\n" "Language-Team: none\n"

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