OdooWiki OCA HUB

HR holidays validity date

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

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.0

Lets 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.type and hr.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

hr_holidays
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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

No verified information

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.

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.