Skip to main content

HR Holidays Public

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

This module is a technical module to handle public holidays.

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

Table of contents

Configuration

Go to Leaves -> Configuration and open a Leave Type

  • Check “Exclude Public Holidays” to exclude public holidays.

Usage

For adding public holidays:

  1. Go to the menu Leaves > Public Holidays > Public Holidays.

  2. Create your public holidays.

For using public holidays on leaves:

  1. Go to Leaves > 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.

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 hr.holidays.public.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. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

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

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.

Metadata

Release files for odoo13-addon-hr-holidays-public 13.0.3.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo13-addon-hr-holidays-public 13.0.3.0.6
File Interpreter ABI Platform Actions
odoo13_addon_hr_holidays_public-13.0.3.0.6-py3-none-any.whl Python 3 none any Details for odoo13_addon_hr_holidays_public-13.0.3.0.6-py3-none-any.whl

Release files / odoo13_addon_hr_holidays_public-13.0.3.0.6-py3-none-any.whl

Download URL odoo13_addon_hr_holidays_public-13.0.3.0.6-py3-none-any.whl
Size 95.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dea13c428623fdef26f8f4725afb6221603d6e2d715519221e05cd07dc4b4953
BLAKE2b-256 checksum
How to use checksums
edaa4d0ca4841c337bf590deaa23f731cd271f81b1cd9a1a29e9c782121211ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/59.5.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5

Security for odoo13-addon-hr-holidays-public 13.0.3.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page