This module was written to define natural day and natural day (Half Day) options in request unit on holidays type.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Adds two new leave request units, Natural day and Natural day (Half Day), to time-off types and allocations, so employees can request leave counted in calendar days instead of working days.
This module extends the Time Off (Holidays) app with two extra options in the "Request Unit" field of leave types and in the allocation request unit: Natural day and Natural day (Half Day).
When a leave type uses one of these units, the duration of a leave request is calculated in natural (calendar) days rather than in the employee's working schedule. For a Natural day request, the whole calendar day counts; for Natural day (Half Day), half of each calendar day counts. The calculation temporarily switches the leave type to the standard day or half-day unit, computes the duration, then restores the original setting, so the rest of Odoo keeps working normally.
On the leave request form, the half-day period fields (morning/afternoon) are hidden when the request unit is Natural day, because a natural day is not split by working periods.
A demo leave type named "Test Time Off (natural day)" is provided for testing. The module touches hr.leave.type, hr.leave.allocation, hr.leave, hr.employee and resource.calendar.
Depends on
Required by other modules
Models and fields (5)
- hr.leave · extends an existing model
- hr.employee · extends an existing model
- hr.leave.type · extends an existing modelrequest_unit
- resource.calendar · extends an existing model
- hr.leave.allocation · extends an existing modeltype_request_unit
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: 7 confirmed, 2 with no information of 9 versions.
Sources · Odoo 15.0
Confirmed on 2026-11-03 in branch 15.0 of OCA/hr-holidays.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0For using natural period on leaves:
- Go to Leaves \> 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 "Natural day" or "Natural day (Half Day)" selected in "Request unit".
- If no leave type is yet specified, then default configuration is to exclude public holidays.
- The number of days will be computed without employee calendar used.
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.