.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association
======================================
Hr Contract Employee Calendar Planning
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:18ed8fc47869734b2baa5068f1346d1bbc662d2b834e9a2efa4ce502117ea7fa
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/18.0/hr_contract_employee_calendar_planning
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-18-0/hr-18-0-hr_contract_employee_calendar_planning
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
This module ensures a consistent working times history when using the
hr_contract and hr_employee_calendar_planning modules together.
There are 3 different data models which can relate to working time
(resource.calendar) records:
- Employees (hr.employee)
- Contracts (hr.contract)
- Resources (resource.resource) -> related to hr.employee through
resource.mixin
The hr_employee_calendar_planning module adds the calendar_ids field
to employees, which allows a more flexible working times configuration:
Instead of selecting a single resource.calendar, multiple calendars can
be combined into one auto-generated calendar.
However, contracts are not considered when creating auto-generated
calendars. This can lead to unexpected behaviour, because the active
contract calendar and the employee calendar can diverge (calendar
mismatch). Additionally, when configuring a new contract, or changing
the existing contract calendar, the employee calendar will be
overwritten by the contract calendar.
To resolve this issue, this module migrates current and previous
contract calendars into the calendar_ids and thus the auto-generated
calendar. Additionally, changes to the employee calendar by contracts
are prevented. The resource_calendar_id field is hidden in contract
views, since all working times should be managed in the calendar_ids
field for each employee. However, it is still possible to keep a
meaningful contract history, e.g. for salary information.
Table of contents
.. contents::
:local:
Usage
Bug Tracker
Bugs are tracked on GitHub Issues <https://github.com/OCA/hr/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 <https://github.com/OCA/hr/issues/new?body=module:%20hr_contract_employee_calendar_planning%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
Contributors
Maintainers
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
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 <https://github.com/OCA/hr/tree/18.0/hr_contract_employee_calendar_planning>_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.