The standard Odoo application "Leaves" allows end users to create leave allocations and leave requests with duration expressed in days or in hours, depending on the configuration set in the leave types. However in the leave summary report, in the employee form and in some other places, the duration is displayed in days regardless of the configuration of the leave type. This is confusing for the customers that are used to manage leaves in hours.
By installing this module, the duration will be displayed in hours in the following views:
- Leaves Summary
- Leaves Left (smart button in Employee form)
- Remaining Legal Leaves (field in Employee form)
auto_awesome What this module does
AI-generated from the code · Odoo 12.0Shows leave allocations, requests and balances in hours instead of days. The employee form and the leave summary report display durations in hours, matching leave types configured in hours.
This module changes how leave information is displayed so that durations appear in hours rather than days, which is useful when leave types are configured in hours.
On the employee form, the remaining legal leaves field is shown in hours (the original days display is hidden). The same applies to the leave summary report: the days column is hidden and a new Duration (hours) column is added, with a total labelled Remaining Hours.
Behind the scenes, the module adds computed hour fields on leave requests (hr.leave), leave allocations (hr.leave.allocation) and the leave report (hr.leave.report). The hours are calculated from the employee's working schedule and the leave dates; if the schedule cannot provide a value, a standard number of hours per day is used. For allocations, hours are the allocated days multiplied by the employee's hours per day.
The employee's leave balance is also recalculated in hours, based on validated allocations minus validated leave requests. This affects the smart button showing leaves left on the employee form.
No new menus are added; the changes appear inside the existing Leaves screens and the employee form.
Depends on
Models and fields (4)
- hr.leave · extends an existing modelnumber_of_hours (Duration (hours))
- hr.employee · extends an existing modelleaves_count (Number of Leaves)
- hr.leave.report · extends an existing modelnumber_of_hours (Duration (hours))
- hr.leave.allocation · extends an existing modelnumber_of_hours (Allocated hours)
Text generated by AI (DeepSeek) from reading the Odoo 12.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: 1 confirmed, 8 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
OCA documentation · Odoo 12.0Installation
Source · Odoo 12.0This module requires a recent version of Odoo 12.0, released after 09-05-2019 (after commit https://github.com/odoo/odoo/commit/2c366acbf01664c4f8d3230d402aa5f2fb46e078).
Also it is suggested (but not mandatory) a version of Odoo 12.0 that includes https://github.com/odoo/odoo/pull/33290
Configuration
Source · Odoo 12.0For a better usage of this module, it is suggested (but not mandatory) to set field 'Take Leaves in' to 'Hour' in all the 'Leave Types'.
No verified information in OCA: Usage.
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.