Skip to main content

Holidays, Allocation and Leave Requests in Hours

Project description

Beta License: AGPL-3 OCA/hr Translate me on Weblate Try me on Runboat

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.

Table of contents

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

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 to smash it by providing a detailed and welcomed feedback.

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

Credits

Authors

  • Onestein

Contributors

Other credits

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

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

This module is part of the OCA/hr project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file odoo11_addon_hr_holidays_hour-11.0.1.0.0.99.dev21-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for odoo11_addon_hr_holidays_hour-11.0.1.0.0.99.dev21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 afa3cdb029763e68b7b7870791bcbb0ba30b6aec596bdbf4a25d3ad63bfa0c59
MD5 2051ba312d99a82f4b8027dbd1573a76
BLAKE2b-256 abc3393e15ed59791f1456f50c02e737b62150df7facefefb560ca921acad165

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page