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).
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Manage public holidays inside the Time Off app: public holidays are shown as unusual days in the leave calendar and can be skipped when counting leave days, depending on each leave type.
This module connects public holidays with the Time Off (HR Holidays) application.
- On each leave type (
hr.leave.type) a new option "Exclude Public Holidays" appears in the Public Holidays group of the form. It is enabled by default and, when active, public holidays are skipped when the number of leave days is calculated. - In the leave calendar, public holidays are displayed as unusual days (grey, like weekends), so employees can see them when planning time off.
- Employees get a computed flag "Public Holiday Today" on their record, and their presence status is shown as a leave status when the day is a public holiday.
- When a leave is validated, the system passes the employee and the exclusion setting so that related processes (for example timesheet generation) do not create entries on public holidays.
- Public holidays are matched using the employee's work address country and state, falling back to the company's country and state.
- A "Public Holidays (OCA)" menu is added under the Time Off configuration, with entries to view public holidays and, for Time Off managers, to create next year's public holidays.
Depends on
Required by other modules
Menus it adds
Models and fields (5)
- hr.leave · extends an existing model
- res.users · extends an existing model
- hr.employee · extends an existing modelis_public_holiday (Public Holiday Today)
- res.partner · extends an existing model
- hr.leave.type · extends an existing modelexclude_public_holidays
Text generated by AI (DeepSeek) from reading the Odoo 19.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-03Confirmation status: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/hr-holidays.
terminal Installation and usage
OCA documentation · Odoo 19.0Configuration
Source · Odoo 19.0Go to Time Off -\> Configuration -\> Time Off Types and open a Leave Type
- Check "Exclude Public Holidays" to exclude public holidays.
Usage
Source · Odoo 19.0For adding public holidays:
- Go to the menu Calendar \> Configuration > Public Holidays \> Public Holidays.
- Create your public holidays.
For using public holidays on leaves:
- Go to Time Off \> Dashboard.
- 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.
- Select the proper "Leave Type" that has "Exclude Public Holidays" checked.
- If no leave type is yet specified, then default configuration is to exclude public holidays.
- The number of days will be computed excluding public holidays that match the selected employee, including global, country and state holidays.
- 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.
No verified information in OCA: Installation.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.