Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] hr_holidays_public: Migration to 18.0 #159

Open
wants to merge 96 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
07b3529
Update hr public holidays code to 11.
Nov 12, 2017
6c0aff0
[FIX] hr_holidays_public: Review comments
MiquelRForgeFlow Jul 10, 2018
b71b22b
[FIX+IMP] hr_holidays_public: Strip hours part + complete migration
pedrobaeza Sep 2, 2018
d303e66
[IMP] hr_holidays_public: Leave only public holidays computation
pedrobaeza Sep 3, 2018
035e1b2
[MIG] hr_holidays_compute_days: Adapt to 11.0 + minimize
pedrobaeza Sep 3, 2018
3bf3677
Translated using Weblate (German)
marylla Dec 17, 2018
91f2fa7
[MIG] hr_holidays_public: Migration to 12.0
alexey-pelykh Dec 22, 2018
905dafd
Translated using Weblate (Spanish)
mvrodriguez Feb 8, 2019
4e0965f
Translated using Weblate (French)
May 23, 2019
344676f
Translated using Weblate (Spanish)
Jun 26, 2019
c7b069e
Translated using Weblate (German)
marylla Jun 28, 2019
b101ddb
Translated using Weblate (Spanish)
Jul 23, 2019
0ca22f3
FIX: fix leave number days when requested across years and public hol…
damdam-s Sep 18, 2019
4418407
hr_holidays_public 12.0.1.0.1
OCA-git-bot Sep 19, 2019
17b407d
[12.0][FIX] hr_holiday_public: Fix method return for concatenation
p-tombez Oct 4, 2019
4f03720
[FIX] hr_holiday_public: Delete holidays public
Oct 9, 2019
007d0fb
Translated using Weblate (Portuguese (Brazil))
Nov 24, 2019
e615b3d
[IMP] hr_holidays_public: black, isort
ernestotejeda Dec 26, 2019
f69670e
[MIG] hr_holidays_public: Migration to 13.0
ernestotejeda Dec 26, 2019
1e47819
[FIX] hr_public_holidays: add tz argument in _work_intervals
MiquelRForgeFlow Feb 10, 2020
2e78d6c
hr_holidays_public 13.0.1.0.1
OCA-git-bot Feb 10, 2020
a735946
[FIX] hr_holidays_public: Adapt to odoo/odoo#51542
pedrobaeza Aug 28, 2020
c7917f0
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 4, 2020
2c48306
[IMP] hr_holidays_public: Create global calendar.event
ivantodorovich Jan 21, 2020
c7ab669
[IMP] Update categ_ids only if available
ivantodorovich Feb 11, 2020
6fe61bf
hr_holidays_public 13.0.3.0.0
OCA-git-bot Nov 30, 2020
aa54f5c
[IMP] hr_holidays_public: black, isort, prettier
dsolanki-initos Dec 30, 2020
8e6ca99
Add fix #20 to 14.0
fshah-initos Jan 25, 2021
609fa4f
[14.0][MIG] hr_holidays_public
dsolanki-initos Dec 30, 2020
e572739
Added translation using Weblate (French (France))
Yvesldff Apr 11, 2021
87fc66e
Translated using Weblate (French (France))
Yvesldff Apr 11, 2021
ebb3385
[FIX] hr_holidays_public: Fix number_of_days in leaves when contain h…
victoralmau Apr 14, 2021
bdc108b
hr_holidays_public 14.0.1.0.1
OCA-git-bot Apr 21, 2021
fc816b3
[FIX] hr_holidays_public: Prevent error in leave form without employe…
victoralmau Apr 22, 2021
9061c08
hr_holidays_public 14.0.1.0.2
OCA-git-bot Apr 26, 2021
aaecb4d
Translated using Weblate (French)
Yvesldff May 14, 2021
1316c83
[14.0] hr_holidays_public: add public holidays as unusual days
petrus-v Sep 29, 2021
36d8432
[14.0] hr_holidays_public: filter public holiday by the current logge…
petrus-v Sep 29, 2021
33ca012
Update hr_holidays_public/readme/DESCRIPTION.rst
petrus-v Sep 29, 2021
91a9ced
[14.0] hr_holidays_public: filter public holiday by the current logge…
petrus-v Sep 29, 2021
d71cbec
fix using wrong variable name + improve coverage
petrus-v Sep 29, 2021
82cc735
hr_holidays_public 14.0.2.0.0
OCA-git-bot Oct 8, 2021
49c2b43
Set exclude_public_holidays employee_id context on _compute_number_of…
santostelmo Nov 30, 2021
7db8a8a
hr_holidays_public 14.0.2.0.1
OCA-git-bot Nov 30, 2021
933bc6b
[FIX] hr_holidays_public: Being multi-record aware in _compute_number…
pedrobaeza Dec 2, 2021
e3bcd0f
[FIX] hr_holidays_public: Don't copy meeting_id
pedrobaeza Jan 4, 2022
8960162
[Fix] hr_holiday_public: Exclude public holidays validating leaves
santostelmo Dec 16, 2021
0600746
hr_holidays_public 14.0.2.0.4
OCA-git-bot Jan 6, 2022
e25e806
Translated using Weblate (Spanish)
olgamarcocb Feb 2, 2022
874603a
Translated using Weblate (Italian)
rbellanova Apr 4, 2022
c67473c
[15.0][MIG] hr_holidays_public
pegonzalezspesol Jan 12, 2022
4f342af
[IMP] hr_holidays_public: use api.model_create_multi
gurneyalex Jun 14, 2022
7565622
hr_holidays_public 15.0.1.0.1
OCA-git-bot Jun 16, 2022
37b8619
Added translation using Weblate (Catalan)
jabelchi Jun 16, 2022
b1de010
[FIX] hr_holidays_public. Public vacations cannot be saved if variabl…
cesar-tecnativa Jul 27, 2022
3882dc0
hr_holidays_public 15.0.1.1.0
OCA-git-bot Jul 28, 2022
7183442
Translated using Weblate (Italian)
mymage Dec 20, 2022
5e3fafc
[FIX] hr_holidays_public: Run tests with user timezone
sergio-teruel Jan 30, 2023
39e4cc5
hr_holidays_public 15.0.1.1.1
OCA-git-bot Jan 31, 2023
27d5c09
[MIG] hr_holidays_public: Migration to 16.0
yankinmax Feb 20, 2023
d6cf94d
[UPD] Update hr_holidays_public.pot
Feb 21, 2023
bf42f14
Update translation files
weblate Feb 21, 2023
157c310
[16.0][FIX] - hr_public_holidays: holidays table is not fully visible…
sbejaoui Mar 30, 2023
c5a64c1
hr_holidays_public 16.0.1.1.0
OCA-git-bot Apr 6, 2023
a573e3c
[IMP] hr_holidays_public: Allow inheritance by other modules
victoralmau Jul 11, 2023
ae33cc4
hr_holidays_public 16.0.1.1.1
OCA-git-bot Jul 25, 2023
645652b
[UPD] README.rst
OCA-git-bot Sep 3, 2023
a0f292b
[IMP] hr_holidays_public: test performance improvement
josep-tecnativa Oct 19, 2023
5c70d12
[BOT] post-merge updates
OCA-git-bot Oct 20, 2023
4a32632
[IMP] hr_holidays_public: pre-commit auto fixes
thaolt99 Dec 5, 2023
75ec773
[MIG] hr_holidays_public: Migration to 17.0
thaolt99 Dec 5, 2023
4b45e8c
[UPD] Update hr_holidays_public.pot
Jan 8, 2024
1f92732
[BOT] post-merge updates
OCA-git-bot Jan 8, 2024
b050c3b
Update translation files
weblate Feb 3, 2024
77803c6
Translated using Weblate (Italian)
mymage Feb 12, 2024
7d22e80
[FIX] hr_holidays_public: Line too long
pedrobaeza May 1, 2024
fe9c120
[BOT] post-merge updates
OCA-git-bot May 1, 2024
ecc2787
[FIX] hr_holidays_public: fixed action_validate() override
dariodelzozzo Feb 16, 2023
c4da874
[FIX] hr_holidays_public*: Use the context employee or the user's emp…
victoralmau Jul 2, 2024
8951187
[FIX] hr_holidays_public: Fix tests (not call the action_validate met…
victoralmau Jul 26, 2024
9928dde
[BOT] post-merge updates
OCA-git-bot Jul 29, 2024
e16c8f3
[BOT] post-merge updates
OCA-git-bot Sep 30, 2024
c7e555b
[FIX] hr_holidays_public: Translatable action
ypapouin Mar 22, 2023
e68112c
[UPD] Update hr_holidays_public.pot
Oct 2, 2024
4d593b1
[BOT] post-merge updates
OCA-git-bot Oct 2, 2024
76c32c9
Update translation files
weblate Oct 2, 2024
e3dd1b4
Translated using Weblate (Italian)
mymage Oct 3, 2024
ef594b2
[FIX] hr_holidays_public: Don't populate partner_ids on calendar event
moctarjallo Nov 29, 2023
67fd286
[BOT] post-merge updates
OCA-git-bot Dec 19, 2024
ec22d45
[FIX] hr_holidays_public: show employee's public holidays in dashboard
chienandalu Dec 19, 2024
035f09f
[UPD] Update hr_holidays_public.pot
Dec 19, 2024
2cc38cf
[BOT] post-merge updates
OCA-git-bot Dec 19, 2024
e23414f
Update translation files
weblate Dec 19, 2024
bad3c8f
Translated using Weblate (Italian)
mymage Dec 20, 2024
37c011f
[MIG] hr_holidays_public: Migration to 18.0
xaviedoanhduy Dec 24, 2024
3cdd58e
[DON'T MERGE] Add test-requirements.txt
xaviedoanhduy Dec 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
179 changes: 179 additions & 0 deletions hr_holidays_public/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
==================
HR Holidays Public
==================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:20a1c7390e84a7da80a5a49da25c16ba624ad80189b1eabcf66c28af58087e10
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.0/hr_holidays_public
: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-18-0/hr-holidays-18-0-hr_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/hr-holidays&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

The calculation of each leave can exclude rest public holiday, depending
on the leave type configuration.

In HR holiday app, public holiday will be displayed as unusual days
(grey like weekends).

**Table of contents**

.. contents::
:local:

Configuration
=============

Go to *Time Off -> Configuration -> Time Off Types* and open a Leave
Type

- Check "Exclude Public Holidays" to exclude public holidays.

Usage
=====

For adding public holidays:

1. Go to the menu *Calendar > Public Holidays > Public Holidays*.
2. Create your public holidays.

For using public holidays on leaves:

1. Go to *Time Off > Dashboard*.
2. Select dragging on the calendar the days you want to be on leave, or
go to the form view for selecting start and end dates.
3. Select the proper "Leave Type" that has "Exclude Public Holidays"
checked.
4. If no leave type is yet specified, then default configuration is to
exclude public holidays.
5. The number of days will be computed excluding public holidays that
match the selected employee, including global, country and state
holidays.
6. If no employee is yet selected, only global holidays will be taken
into account.

In calendar views in HR holiday app public will be display (likes other
unusual days) according the current user employee country/state. If not
set the there is a fallback to the current company country/state to
filter public holidays.

Known issues / Roadmap
======================

In Odoo 12.0, \_leave_intervals() returns Intervals which is a list of
tuples (start_timestamp, end_timestamp, resource.calendar.leaves
record). Since this module does not operate with
resource.calendar.leaves, it's setting third component of a tuple to a
calendar.public.holiday.line record. This may or may not be a problem,
yet since this component is also being set to
resource.calendar.attendance records in \_attendance_intervals(), seems
it should be ok.

There are no restrictions to block users from modifying or removing
calendar events linked to public holidays. There's a suggestion to
overload write and unlink methods of calendar.event, but it might have
other impacts like users not being able to edit event tags, or even
custom fields.

Regional public holidays are shown in the public calendar. The regions
will be noted in the description of the event, but it'll be shown to all
users. It'd be good to have it show only for users in these regions.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr-holidays/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/hr-holidays/issues/new?body=module:%20hr_holidays_public%0Aversion:%2018.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
-------

* Michael Telahun Makonnen
* Tecnativa
* Fekete Mihai (Forest and Biomass Services Romania)
* Druidoo
*

Contributors
------------

- Michael Telahun Makonnen <[email protected]>
- Fekete Mihai <[email protected]>
- Nikolina Todorova <[email protected]>
- Alexis de Lattre <[email protected]>
- Salton Massally (iDT Labs) <[email protected]>
- Ivan Yelizariev <[email protected]>
- Bassirou Ndaw <[email protected]>
- Dhara Solanki <[email protected]>
- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza

- `CorporateHub <https://corporatehub.eu/>`__

- Alexey Pelykh <[email protected]>

- `Camptocamp <https://www.camptocamp.com>`__:

- Damien Crier <[email protected]>

- `Druidoo <https://www.druidoo.io>`__:

- Iván Todorovich <[email protected]>

- `Pesol <https://www.pesol.es>`__:

- Pedro Evaristo Gonzalez Sanchez <[email protected]>

- `Trobz <https://trobz.com>`__:

- Thao Le <[email protected]>
- Do Anh Duy <[email protected]>

Other credits
-------------

The migration of this module from 16.0 to 17.0 and then from 17.0 to
18.0 was financially supported by Camptocamp.

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 <https://github.com/OCA/hr-holidays/tree/18.0/hr_holidays_public>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions hr_holidays_public/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
25 changes: 25 additions & 0 deletions hr_holidays_public/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2015 2011,2013 Michael Telahun Makonnen <[email protected]>
# Copyright 2020 InitOS Gmbh
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "HR Holidays Public",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"category": "Human Resources",
"author": "Michael Telahun Makonnen, "
"Tecnativa, "
"Fekete Mihai (Forest and Biomass Services Romania), "
"Druidoo, "
"Odoo Community Association (OCA),",
"summary": "Manage Public Holidays",
"website": "https://github.com/OCA/hr-holidays",
"depends": [
"hr_holidays",
"calendar_public_holiday",
],
"data": [
"views/hr_leave_type.xml",
],
"installable": True,
}
Loading
Loading