Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

License: AGPL-3

Leave Management in hours

The standard Odoo application “Leave Management” allows employees to create leave allocations and requests by defining their duration in days.

By installing this module, the duration of the leaves will be expressed in hours, instead of days. In the leave form, a new field “duration” (in hours) will be displayed and the original field “duration” (in days) will be hidden.

As an example, let’s say that a working day for an employee is 8 hours:

  • 1 day = 8 hours

  • 2 days = 16 hours

  • 0.5 days (half day) = 4 hours

  • 0.125 days = 1 hour

etc…

If the employee wants to request a leave of one hour:

  • with the standard Odoo app “Leave Management” the employee would write 0.125 days

  • with module “hr_holidays_hour” installed, the employee writes 1.0 hour

If the employee wants to request half a day:

  • with the standard Odoo app “Leave Management” the employee would write 0.5 days

  • with module “hr_holidays_hour” installed, the employee writes 4.0 hours

In case a working time schedule is defined for an employee, the duration (in hours) will be automatically filled while setting the starting date and the ending date of a leave request. If the “Working Time” is not set for the employee, but the employee has a contract with a working schedule, the duration (in hours) will be automatically filled as well.

Usage

To request a leave, an employee can:

  1. From menu Leaves, create a Leave Request by setting the duration in hours (instead of days)

To allocate hours for an employee:

  1. From menu Leaves, create an Allocation Request by setting the duration in hours (instead of days)

To fully benefit from this module, the HR Officer should set a working time schedule for the employees. The duration (in hours) will be automatically filled while setting the start and the end date of a leave. In thi cas, the employee requesting a leave is still able to adjust the hours manually.

To set a working schedule for an employee:

  1. From menu Employees -> Employees, select one employee

  2. Set the “Working Time” field

If the “Working Time” is not set for the employee, but the employee has a contract with a working schedule, the duration (in hours) will be automatically filled as well.

  1. From menu Employees -> Employees, select one employee

  2. Click on Contracts and select the employee’s actual contract

  3. Set the “Working Schedule” field

Try me on Runbot

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.

Credits

Tests for resource_calendar are repeated from the Odoo SA standard module resource.

Images

  • Odoo Community Association: Icon.

Contributors

Do not contact contributors directly about support or help with technical issues.

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.

Release files for odoo10-addon-hr-holidays-hour 10.0.1.0.0.99.dev6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo10-addon-hr-holidays-hour 10.0.1.0.0.99.dev6
File Interpreter ABI Platform
odoo10_addon_hr_holidays_hour-10.0.1.0.0.99.dev6-py2-none-any.whl Python 2 none any Details

Release files / odoo10_addon_hr_holidays_hour-10.0.1.0.0.99.dev6-py2-none-any.whl

Download URL odoo10_addon_hr_holidays_hour-10.0.1.0.0.99.dev6-py2-none-any.whl
Size 30.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
533022e21de5918d408803d8a87dac6ceeb33a2b941ddf150581e17f5bd5f1fc
BLAKE2b-256 checksum
How to use checksums
98d3c2ced992af32b2f92e65742b04e6ed8474a2d41ef5dc834c5b0107511a16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/30.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page