OdooWiki OCA HUB

Holidays Natural Period Public

hr_holidays_natural_period_public folder_open OCA/hr-holidays open_in_new
Human Resources License: AGPL-3

This is a glue module between HR Holidays Public and HR Holidays Natural Period modules.

It allows the user to decide whether public holidays should be excluded from leave days computation or not, when the requested leave type uses natural days as the request unit.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets you choose whether public holidays are counted or skipped when a leave type is requested in natural (calendar) days. It connects the public holidays and natural period leave features in Odoo.

This module is a bridge between two other Human Resources add-ons: one that manages public holidays and one that lets leave types be requested in natural days (calendar days) instead of working days.

When a leave type uses natural days, this module makes the existing "exclude public holidays" option work for that leave type. In other words, you can decide per leave type whether public holidays inside the requested period should be deducted from the leave balance or counted as normal leave days.

Technically, it extends the working schedule model resource.calendar. When Odoo computes attendance intervals and the context asks to exclude public holidays, the module filters those public holidays out of the computed intervals. This is what makes the leave day count respect the public holiday setting for natural-day leave types.

It also ships a demo leave type configured with public holidays not excluded, so you can test the behaviour. No new menus, screens, buttons or reports are added; the change is a computation rule applied behind the scenes when leave requests are evaluated. The setting itself is the exclude_public_holidays field on the leave type (hr.leave.type).

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/hr-holidays.

terminal Installation and usage

OCA documentation · Odoo 16.0

To choose whether you want to exclude public holidays from leave days computation, you can access the settings of the leave type and check or uncheck the box "Exclude public holidays". Also make sure that the "Request Unit" is set to "Natural Day".

To access the settings of the leave type, you must navigate to Time Off --> Configurations --> Time Off Types and select the desired leave type.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.