Custom Hour Interval for Holidays
This module allows to create time off requests using custom hours with float fields.
auto_awesome What this module does
AI-generated from the code · Odoo 17.0Lets users enter the start and end time of a time off request as decimal hours (e.g. 8.50) instead of text, and automatically keeps the standard hour fields in sync.
This module changes how the start and end time of a time off request is entered on the Time Off form. Instead of typing the hour as text, users get two numeric fields shown with a time widget: one for the start hour and one for the end hour.
- The new fields appear on the standard time off request form (
hr.leave) and are only visible when the request is measured in hours (request_unit_hours). - When the request is measured in hours, both fields are required, so a request cannot be saved without a start and end time.
- The fields become read-only once the request is in the validated state.
- The original text hour fields are hidden from the form.
- Behind the scenes, the numeric values are automatically converted into the text format used by the standard fields, and the leave start and end dates are recalculated from them.
The module only touches the hr.leave model and the time off request form; it does not add menus, reports, emails or scheduled actions.
Depends on
Models and fields (1)
- hr.leave · extends an existing modelrequest_hour_to, request_hour_from, request_time_hour_to (Float hour to), request_time_hour_from (Float hour from)
Text generated by AI (DeepSeek) from reading the Odoo 17.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 15.0
Confirmed on 2026-11-03 in branch 15.0 of OCA/hr-holidays.
terminal Installation and usage
OCA documentation · Odoo 17.0Usage
Source · Odoo 17.0To use this module, you need to:
- Go to Time Off \> Configuration \> Time Off Types
- Create a "Hours Time Off" Time Off Type and select "Custom Hours"
- Go to My Time Off \> Time Off Requests
- Create a Time Off Request with the Time Off Type previously created
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.