This module was written to define start and end date on holidays type.
auto_awesome What this module does
AI-generated from the code · Odoo 13.0Lets you set a validity period on each leave type and either warn or block employees from requesting leave outside that period.
This module adds a validity date range to leave types and uses it to control leave requests.
- On a leave type (Time Off Type), a new "Restrict" checkbox appears next to the existing validity end date. When checked, requests outside the validity range are forbidden; when unchecked, employees only see a warning.
- On a leave request form, a warning message is shown automatically when the selected dates fall outside the leave type's validity period. The warning is hidden if the leave type is set to restrict dates, because in that case the request is blocked instead.
- The module extends
hr.leave.typeandhr.leave, and adds the new field to the leave type form and the leave request form. - The check runs automatically whenever the leave type, start date or end date changes, so users get immediate feedback while filling in the request.
Depends on
Models and fields (2)
- hr.leave · extends an existing modelrestrict_dates (Restrict dates), warning_validity
- hr.leave.type · extends an existing modelrestrict_dates (Restrict)
Text generated by AI (DeepSeek) from reading the Odoo 13.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: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/hr.
terminal Installation and usage
No verified informationInstallation 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.