Employees Shifts and public holidays
Avoid assigning shifts on public holidays.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Prevents assigning shifts to employees on public holidays by checking the employee's address when a shift planning line is created.
This module extends the shift planning functionality so that Odoo can recognise when a planned shift falls on a public holiday for the employee concerned.
- It adds a check on shift planning lines (
hr.shift.planning.line) that looks at the shift's start date and the employee's address. - Using the public holiday data from the
calendar.public.holidaymodel, it determines whether that date is a public holiday for the employee's location. - The check only runs when both a start date and an employee are present on the line; otherwise it simply returns no holiday.
Because the module contains no menus, views, or data files, it does not add new screens or buttons. Its effect is behind the scenes: other parts of the shift planning flow can use this holiday detection to avoid scheduling work on public holidays. The module depends on the public holiday calendar and the employee shift planning features, and it touches the hr.shift.planning.line model together with calendar.public.holiday. No automatic emails, scheduled jobs, or extra business rules beyond this holiday check are visible in the code.
Depends on
Text generated by AI (DeepSeek) from reading the Odoo 18.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: 4 confirmed, 5 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/shift-planning.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0When there's a public holiday for an employees work address no shift will be assigned for that day. Those days will be marked as black in the assingment card.
No verified information in OCA: Installation, Configuration.
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.