OdooWiki OCA HUB

Hr Leave Hour

hr_leave_hour folder_open OCA/hr open_in_new
Uncategorised License: AGPL-3

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 13.0

Lets employees enter time off start and end times as decimal hours (for example 8.50) on the time off request form, instead of typing text hours.

This module changes the Time Off request form so that the start and end hours are entered as numbers with a time widget, rather than as free text.

  • On the time off request form, the original text hour fields are hidden and replaced by two new numeric fields: one for the hour from and one for the hour to.
  • These numeric fields are only shown when the request is set to be counted in hours (the 'request_unit_hours' option). In that case they are also mandatory.
  • Once a request has been validated, the hour fields become read-only, so they can no longer be changed.
  • The module keeps the original text hour fields up to date automatically: whenever the numeric hour is filled in, the text version is recalculated and stored, so other parts of Odoo that read the text hours still work.
  • It also hooks into the standard recalculation that happens when the request dates, the day period, the employee or the hours change, so the request parameters stay consistent.

The module extends the hr.leave model and inherits the standard time off form view from the Time Off application. It does not add any new menu, report or scheduled action.

Depends on

hr_holidays
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 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: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 13.0

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

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.