Skip to main content

When holidays are granted, add lines to the analytic account that is linked to the Leave Type

Project description

License: AGPL-3

HR Timesheet Holiday

This module adds a relation between Leave Types and Projects/Analytic Accounts. When a Leave Request is granted, the granted days are converted to hours and added as a line to the Analytic Account.

When the leave is revoked, the analytic lines are removed again.

The analytic lines are read-only, so you cannot edit them directly, just by granting or revoking leave requests.

The hours to input per day is configurable at company level.

Limitations:

  • Consider that the work days are Monday to Friday

  • Only allow leaves account linked to project

Configuration

To configure this module, you need to:

  1. Find your company in Settings - Companies and configure the amount of hours per workday under Configuration - Timesheets - Timesheet Hours Per Day.

  2. For each Leave Type under Human Resources - Leave Types, select a Project that allows timesheets or create one.

Usage

To use this module, you need to:

  1. Approve a Leave Request

  2. See the hours added to Timesheet Activities

  3. Revoke a Leave Request

  4. See the hours removed from Timesheet Activities

Known issues / Roadmap

  • Hours per workday should be configurable per employee, not only by company. To make this easier, the function _get_hours_per_day was made which can be overridden by child modules.

  • We should probably start using resource calendars.

  • hr_timesheet_sheet dependency can be changed to hr_timesheet, now only included because hr_timesheet_sheet adds the Timesheet configurations menu in Company view.

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

Credits

Images

  • Odoo Community Association: Icon.

Contributors

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.

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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo10_addon_hr_timesheet_holiday-10.0.1.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo10_addon_hr_timesheet_holiday-10.0.1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 a42ecc1000812a1aa4d868b19de643bcea6a50faf7813d01b78197155745408b
MD5 218aee15edb5648f07e2daf26d27f5a8
BLAKE2b-256 ddc6eebe9405ba56331e342f3c6493a933d13b07f97694b9fe8c3b2094b05a22

See more details on using hashes here.

Supported by

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