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 95 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
95 commits
Select commit Hold shift + click to select a range
5738529
Update hr public holidays code to 11.
Nov 12, 2017
6dafd5e
[FIX] hr_holidays_public: Review comments
MiquelRForgeFlow Jul 10, 2018
2f7a8e6
[FIX+IMP] hr_holidays_public: Strip hours part + complete migration
pedrobaeza Sep 2, 2018
a7cc2fb
[IMP] hr_holidays_public: Leave only public holidays computation
pedrobaeza Sep 3, 2018
99d5006
[MIG] hr_holidays_compute_days: Adapt to 11.0 + minimize
pedrobaeza Sep 3, 2018
55ed3fc
Translated using Weblate (German)
marylla Dec 17, 2018
8a04901
[MIG] hr_holidays_public: Migration to 12.0
alexey-pelykh Dec 22, 2018
6f9144f
Translated using Weblate (Spanish)
mvrodriguez Feb 8, 2019
f0fb9ae
Translated using Weblate (French)
May 23, 2019
c6d7e0b
Translated using Weblate (Spanish)
Jun 26, 2019
4ea7409
Translated using Weblate (German)
marylla Jun 28, 2019
f9e3c6c
Translated using Weblate (Spanish)
Jul 23, 2019
d1144eb
FIX: fix leave number days when requested across years and public hol…
damdam-s Sep 18, 2019
533daf4
hr_holidays_public 12.0.1.0.1
OCA-git-bot Sep 19, 2019
ce5f69a
[12.0][FIX] hr_holiday_public: Fix method return for concatenation
p-tombez Oct 4, 2019
6e3e294
[FIX] hr_holiday_public: Delete holidays public
Oct 9, 2019
62e52c6
Translated using Weblate (Portuguese (Brazil))
Nov 24, 2019
d8ea7db
[IMP] hr_holidays_public: black, isort
ernestotejeda Dec 26, 2019
f40e480
[MIG] hr_holidays_public: Migration to 13.0
ernestotejeda Dec 26, 2019
007906e
[FIX] hr_public_holidays: add tz argument in _work_intervals
MiquelRForgeFlow Feb 10, 2020
4012d24
hr_holidays_public 13.0.1.0.1
OCA-git-bot Feb 10, 2020
80f0e64
[FIX] hr_holidays_public: Adapt to odoo/odoo#51542
pedrobaeza Aug 28, 2020
cf23d5c
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 4, 2020
bfcc5ed
[IMP] hr_holidays_public: Create global calendar.event
ivantodorovich Jan 21, 2020
1690d34
[IMP] Update categ_ids only if available
ivantodorovich Feb 11, 2020
0854db2
hr_holidays_public 13.0.3.0.0
OCA-git-bot Nov 30, 2020
16f8848
[IMP] hr_holidays_public: black, isort, prettier
dsolanki-initos Dec 30, 2020
4c69916
Add fix #20 to 14.0
fshah-initos Jan 25, 2021
cddf3eb
[14.0][MIG] hr_holidays_public
dsolanki-initos Dec 30, 2020
e04c772
Added translation using Weblate (French (France))
Yvesldff Apr 11, 2021
5b44eb4
Translated using Weblate (French (France))
Yvesldff Apr 11, 2021
8dc504e
[FIX] hr_holidays_public: Fix number_of_days in leaves when contain h…
victoralmau Apr 14, 2021
9d48654
hr_holidays_public 14.0.1.0.1
OCA-git-bot Apr 21, 2021
f1fd82a
[FIX] hr_holidays_public: Prevent error in leave form without employe…
victoralmau Apr 22, 2021
a27103a
hr_holidays_public 14.0.1.0.2
OCA-git-bot Apr 26, 2021
b55a064
Translated using Weblate (French)
Yvesldff May 14, 2021
e8101b3
[14.0] hr_holidays_public: add public holidays as unusual days
petrus-v Sep 29, 2021
0e2122d
[14.0] hr_holidays_public: filter public holiday by the current logge…
petrus-v Sep 29, 2021
29846d1
Update hr_holidays_public/readme/DESCRIPTION.rst
petrus-v Sep 29, 2021
624b5f3
[14.0] hr_holidays_public: filter public holiday by the current logge…
petrus-v Sep 29, 2021
0415726
fix using wrong variable name + improve coverage
petrus-v Sep 29, 2021
4d2e3a3
hr_holidays_public 14.0.2.0.0
OCA-git-bot Oct 8, 2021
657e4df
Set exclude_public_holidays employee_id context on _compute_number_of…
santostelmo Nov 30, 2021
31de6ba
hr_holidays_public 14.0.2.0.1
OCA-git-bot Nov 30, 2021
2d60b35
[FIX] hr_holidays_public: Being multi-record aware in _compute_number…
pedrobaeza Dec 2, 2021
1c8e247
[FIX] hr_holidays_public: Don't copy meeting_id
pedrobaeza Jan 4, 2022
e2a5dd1
[Fix] hr_holiday_public: Exclude public holidays validating leaves
santostelmo Dec 16, 2021
3e73412
hr_holidays_public 14.0.2.0.4
OCA-git-bot Jan 6, 2022
641e1b4
Translated using Weblate (Spanish)
olgamarcocb Feb 2, 2022
9a9ecc7
Translated using Weblate (Italian)
rbellanova Apr 4, 2022
0a952dd
[15.0][MIG] hr_holidays_public
pegonzalezspesol Jan 12, 2022
4e1f8b2
[IMP] hr_holidays_public: use api.model_create_multi
gurneyalex Jun 14, 2022
556228b
hr_holidays_public 15.0.1.0.1
OCA-git-bot Jun 16, 2022
3f8c45e
Added translation using Weblate (Catalan)
jabelchi Jun 16, 2022
4878c0b
[FIX] hr_holidays_public. Public vacations cannot be saved if variabl…
cesar-tecnativa Jul 27, 2022
11c1503
hr_holidays_public 15.0.1.1.0
OCA-git-bot Jul 28, 2022
b41ca41
Translated using Weblate (Italian)
mymage Dec 20, 2022
527a350
[FIX] hr_holidays_public: Run tests with user timezone
sergio-teruel Jan 30, 2023
8c6edfb
hr_holidays_public 15.0.1.1.1
OCA-git-bot Jan 31, 2023
f6f43c2
[MIG] hr_holidays_public: Migration to 16.0
yankinmax Feb 20, 2023
4d91e9c
[UPD] Update hr_holidays_public.pot
Feb 21, 2023
76251d9
Update translation files
weblate Feb 21, 2023
45734e3
[16.0][FIX] - hr_public_holidays: holidays table is not fully visible…
sbejaoui Mar 30, 2023
9d44aa8
hr_holidays_public 16.0.1.1.0
OCA-git-bot Apr 6, 2023
48d1935
[IMP] hr_holidays_public: Allow inheritance by other modules
victoralmau Jul 11, 2023
49b214a
hr_holidays_public 16.0.1.1.1
OCA-git-bot Jul 25, 2023
f0bc5d6
[UPD] README.rst
OCA-git-bot Sep 3, 2023
d042cdd
[IMP] hr_holidays_public: test performance improvement
josep-tecnativa Oct 19, 2023
fd26d1f
[BOT] post-merge updates
OCA-git-bot Oct 20, 2023
bb02304
[IMP] hr_holidays_public: pre-commit auto fixes
thaolt99 Dec 5, 2023
36ce490
[MIG] hr_holidays_public: Migration to 17.0
thaolt99 Dec 5, 2023
c82358a
[UPD] Update hr_holidays_public.pot
Jan 8, 2024
bdd4809
[BOT] post-merge updates
OCA-git-bot Jan 8, 2024
ba5acbb
Update translation files
weblate Feb 3, 2024
6da24ea
Translated using Weblate (Italian)
mymage Feb 12, 2024
f81faf4
[FIX] hr_holidays_public: Line too long
pedrobaeza May 1, 2024
ca6874b
[BOT] post-merge updates
OCA-git-bot May 1, 2024
185de5d
[FIX] hr_holidays_public: fixed action_validate() override
dariodelzozzo Feb 16, 2023
3c97283
[FIX] hr_holidays_public*: Use the context employee or the user's emp…
victoralmau Jul 2, 2024
1dd8429
[FIX] hr_holidays_public: Fix tests (not call the action_validate met…
victoralmau Jul 26, 2024
cc8d7bb
[BOT] post-merge updates
OCA-git-bot Jul 29, 2024
45f5867
[BOT] post-merge updates
OCA-git-bot Sep 30, 2024
1dac23f
[FIX] hr_holidays_public: Translatable action
ypapouin Mar 22, 2023
8be334a
[UPD] Update hr_holidays_public.pot
Oct 2, 2024
a7e33fa
[BOT] post-merge updates
OCA-git-bot Oct 2, 2024
e5f7722
Update translation files
weblate Oct 2, 2024
62962d6
Translated using Weblate (Italian)
mymage Oct 3, 2024
dcc751d
[FIX] hr_holidays_public: Don't populate partner_ids on calendar event
moctarjallo Nov 29, 2023
18f69ef
[BOT] post-merge updates
OCA-git-bot Dec 19, 2024
3924b23
[FIX] hr_holidays_public: show employee's public holidays in dashboard
chienandalu Dec 19, 2024
f1b1a8b
[UPD] Update hr_holidays_public.pot
Dec 19, 2024
1e15c55
[BOT] post-merge updates
OCA-git-bot Dec 19, 2024
c0042fe
Update translation files
weblate Dec 19, 2024
0c1d77d
Translated using Weblate (Italian)
mymage Dec 20, 2024
fb38c0f
[MIG] hr_holidays_public: Migration to 18.0
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
180 changes: 180 additions & 0 deletions hr_holidays_public/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
==================
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 > Configuration > 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
27 changes: 27 additions & 0 deletions hr_holidays_public/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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": [
"security/ir.model.access.csv",
"views/hr_leave_type.xml",
"views/menu.xml",
],
"installable": True,
}
Loading