Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
396e26f
[ADD] hr_employee_calendar_planning: Employee Calendar Planning
pedrobaeza Mar 12, 2019
ed2a9b8
[MIG] hr_employee_calendar_planning
Mar 15, 2019
267b97e
[12.0][MIG] hr_employee_calendar_planning
May 28, 2019
e408c2d
[12.0][IMP] hr_employee_calendar_planning
Jun 5, 2019
5935043
[IMP] hr_employee_calendar_planning: black, isort, prettier
May 6, 2020
5578689
[13.0][MIG] hr_employee_calendar_planning
May 6, 2020
de94a77
[13.0][IMP] support for two_week calendar
May 7, 2020
08c764a
[FIX] hr_employee_calendar_planning: link leaves
chienandalu Nov 5, 2019
97be117
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Sep 30, 2020
dbc4a2b
[14.0][MIG] hr_employee_calendar_planning
aphon61bank Nov 12, 2020
5427c4d
Added translation using Weblate (French)
Yvesldff May 14, 2021
de57587
[FIX] hr_employee_calendar_planning: Prevent disable resource.calenda…
victoralmau Jul 13, 2021
60b4f8f
[FIX] hr_employee_calendar_planning: Add check_company to calendar_id…
victoralmau Jul 27, 2021
ba1325b
[FIX] hr_employee_calendar_planning: Force to auto generate calendar …
victoralmau Sep 8, 2021
c2a1622
[FIX] hr_employee_calendar_planning: Regenerate automatic calendar 2 …
victoralmau Oct 15, 2021
466c536
[FIX] hr_employee_calendar_planning: Regenerate the automatic calenda…
victoralmau Oct 18, 2021
591eab4
Translated using Weblate (Catalan)
Noel000 Mar 21, 2022
27eda04
[FIX] hr_employee_calendar_planning: Prevent inconsistent company + A…
victoralmau Apr 11, 2022
7e676bb
[UPD] Update hr_employee_calendar_planning.pot
Apr 25, 2022
0c42b97
[FIX] hr_employee_calendar_planning: Avoid error with parent
luistorresm Oct 26, 2021
7bdea30
Added translation using Weblate (German)
marylla May 11, 2022
86f61fc
[IMP] hr_employee_calendar_planning: add global leaves and time zone …
jonasbuchholz Jul 6, 2022
2a534b6
Added translation using Weblate (Spanish (Argentina))
nimarosa Aug 4, 2022
317d7ef
[MIG] hr_employee_calendar_planning: Migration to 15.0
pegonzalezspesol Jul 7, 2022
bd12aee
[IMP] hr_employee_calendar_planning: Hide resource_calendar_id field …
victoralmau Oct 25, 2022
e681c58
[FIX] hr_employee_calendar_planning: prevent regenerate_calendar-writ…
jonasbuchholz Nov 30, 2022
8191b3e
[IMP] hr_employee_calendar_planning: Allow duplicate employee
victoralmau Feb 15, 2023
e5150bd
[FIX] hr_employee_calendar_planning: no constraint on install mode
yajo Nov 29, 2022
c4a0a2b
[IMP] hr_employee_calendar_planning: set calendar_ids from Create emp…
victoralmau Apr 28, 2023
9623f5d
[IMP] hr_employee_calendar_planning: remove date_start from _sync_user
jonasbuchholz May 16, 2023
5f76fbd
Added translation using Weblate (Italian)
mymage May 17, 2023
4ec60cf
Translated using Weblate (Italian)
francesco-ooops May 24, 2023
f197879
[FIX] hr_employee_calendar_planning: fill calendar if empty
etobella Jun 2, 2023
fd94f2d
[MIG] hr_employee_calendar_planning: Migration to 16.0
Jun 5, 2023
241aef5
[IMP] hr_employee_calendar_planning: Allow to archive when calendars …
etobella Jun 2, 2023
8ecd1d3
[IMP] hr_employee_calendar_planning: Set calendar_ids default value t…
victoralmau Jun 29, 2023
3546692
[FIX] hr_employee_calendar_planning: Add ondelete to employee_id and …
victoralmau Jul 4, 2023
0b81784
[FIX] hr_employee_calendar_planning: avoid constrain on global leaves…
jonasbuchholz Nov 7, 2023
3601d18
[IMP] hr_employee_calendar_planning: display working schedule inside …
jonasbuchholz Nov 7, 2023
e780360
Translated using Weblate (Spanish)
Ivorra78 Nov 27, 2023
b91e0c6
Translated using Weblate (Italian)
mymage Nov 30, 2023
3108730
[FIX]hr_employee_calendar_planning: only necessary leaves
ChristophAbenthungCibex Mar 25, 2024
67c7e61
[FIX]hr_employee_calendar_planning:create multi calendars
ChristophAbenthungCibex Apr 9, 2024
6f7eb2c
[IMP] hr_employee_calendar_planning: pre-commit auto fixes
May 23, 2024
24c4a08
[17.0][MIG] hr_employee_calendar_planning: Migration to 17.0
Aug 14, 2024
b9cef67
[FIX] hr_employee_calendar_planning: Change test employee name
pilarvargas-tecnativa Dec 10, 2024
f5eb838
[FIX] hr_employee_calendar_planning: Hide resource_calendar_id even i…
victoralmau Jan 24, 2025
2c622f1
[FIX] hr_employee_calendar_planning: Avoid error in post_init_hook wi…
victoralmau Feb 3, 2025
c6c67dd
[MIG] hr_employee_calendar_planning: Migration to 18.0
BhaveshHeliconia Dec 13, 2024
0120703
[UPD] Update hr_employee_calendar_planning.pot
Feb 5, 2025
5fe1608
[BOT] post-merge updates
OCA-git-bot Feb 5, 2025
337e715
Update translation files
weblate Feb 5, 2025
33f26d1
[FIX]hr_employee_calendar_planning: Fix _check_company_id
ChristophAbenthungCibex Jul 30, 2025
d210abe
[BOT] post-merge updates
OCA-git-bot Jul 30, 2025
929aa51
[MIG] hr_employee_calendar_planning: Migration to 19.0
Jan 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 148 additions & 0 deletions hr_employee_calendar_planning/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==========================
Employee Calendar Planning
==========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:118b3a58ddb2455e73cbcb6cbcd6321aa2db505dd2dc38a23945fd961f7faae3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/19.0/hr_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-19-0/hr-19-0-hr_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=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to manage employee working time with profiles by date
intervals.

The profiles are regular working time calendars, but they are treated as
master ones here, allowing you to compose complexes working times by
dates.

Under the hook, a unique working time is created for each employee with
the proper composition for not affecting the rest of the functionality
linked to this model.

**Table of contents**

.. contents::
:local:

Installation
============

During the installation of the module, current working times are split
by start/end dates for having consistent data, and the potential new
composed calendar planning is saved instead on the employee.

Configuration
=============

1. Go to *Employees > Employees*.
2. Open or create a new one.
3. On the "Work Information" tab, fill the section "Working Hours" with:

- Starting date (optional).
- Ending date (optional).
- Working time to apply during that date interval.

Known issues / Roadmap
======================

- Add a wizard for generating next year calendar planning based on
current one in batch.
- Add constraint for avoiding planning lines overlapping.
- Avoid the regeneration of whole private calendars each time a change
is detected.

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_employee_calendar_planning%0Aversion:%2019.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
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Víctor Martínez

- `Creu Blanca <https://www.creu-blanca.es/>`__:

- Jaime Arroyo

- `ForgeFlow <https://www.forgeflow.com/>`__:

- Jordi Ballester Alomar (jordi.ballester@forgeflow.com)
- Nattapong W. <aphon61bank@gmail.com>

- `PeGon <https://www.pegon.ch>`__:

- Pedro Evaristo Gonzalez Sanchez <pedro.gonzalez@pegon.ch>

- ``Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>``\ \_
- `Studio73 <https://www.studio73.es>`__:

- Vicent Castells Donat <vicent@studio73.es>

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.

.. |maintainer-victoralmau| image:: https://github.com/victoralmau.png?size=40px
:target: https://github.com/victoralmau
:alt: victoralmau
.. |maintainer-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px
:target: https://github.com/pedrobaeza
:alt: pedrobaeza

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-victoralmau| |maintainer-pedrobaeza|

This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/19.0/hr_employee_calendar_planning>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions hr_employee_calendar_planning/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
18 changes: 18 additions & 0 deletions hr_employee_calendar_planning/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Employee Calendar Planning",
"version": "19.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/hr",
"author": "Tecnativa,Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": ["hr", "hr_holidays"],
"data": [
"security/ir.model.access.csv",
"views/hr_employee_views.xml",
"views/resource_calendar_views.xml",
],
"maintainers": ["victoralmau", "pedrobaeza"],
}
146 changes: 146 additions & 0 deletions hr_employee_calendar_planning/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_employee_calendar_planning
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-03-21 14:17+0000\n"
"Last-Translator: Noel estudillo <noelestudilloviera@gmail.com>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: hr_employee_calendar_planning
#. odoo-python
#: code:addons/hr_employee_calendar_planning/models/resource_calendar.py:0
msgid ""
"%(item_name)s is used in %(total_items)s employee(s) related to another "
"company."
msgstr ""

#. module: hr_employee_calendar_planning
#. odoo-python
#: code:addons/hr_employee_calendar_planning/models/resource_calendar.py:0
msgid ""
"%(item_name)s is used in %(total_items)s employee(s).You should change them "
"first."
msgstr ""

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_resource_calendar__active
msgid "Active"
msgstr "Actiu"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_resource_calendar__auto_generate
msgid "Auto Generate"
msgstr "Generació automàtica"

#. module: hr_employee_calendar_planning
#. odoo-python
#: code:addons/hr_employee_calendar_planning/models/hr_employee.py:0
msgid "Auto generated calendar for employee"
msgstr "Horari autogenerat per a l'empleat"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee__calendar_ids
msgid "Calendar planning"
msgstr "Pla d'horari"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__company_id
msgid "Company"
msgstr "Companyia"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__create_uid
msgid "Created by"
msgstr "Creat per"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__create_date
msgid "Created on"
msgstr "Creat el"

#. module: hr_employee_calendar_planning
#: model:ir.model.constraint,message:hr_employee_calendar_planning.constraint_hr_employee_calendar_date_consistency
msgid "Date end should be higher than date start"
msgstr "La data de fi ha de ser més gran que la d'inici"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__display_name
msgid "Display Name"
msgstr "Nom a mostrar"

#. module: hr_employee_calendar_planning
#: model:ir.model,name:hr_employee_calendar_planning.model_hr_employee
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__employee_id
msgid "Employee"
msgstr "Empleat"

#. module: hr_employee_calendar_planning
#: model:ir.model,name:hr_employee_calendar_planning.model_hr_employee_calendar
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_resource_calendar__employee_calendar_ids
msgid "Employee Calendar"
msgstr "Horari de l'empleat"

#. module: hr_employee_calendar_planning
#: model_terms:ir.ui.view,arch_db:hr_employee_calendar_planning.resource_calendar_form
msgid "Employee Calendars"
msgstr ""

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__date_end
msgid "End Date"
msgstr "Data de finalització"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__id
msgid "ID"
msgstr "ID"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,help:hr_employee_calendar_planning.field_resource_calendar__active
msgid ""
"If the active field is set to false, it will allow you to hide the Working "
"Time without removing it."
msgstr ""
"Si el camp actiu està definit com a fals, us permetrà ocultar el temps de "
"treball sense eliminar-lo."

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__write_uid
msgid "Last Updated by"
msgstr "Darrera modificació per"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__write_date
msgid "Last Updated on"
msgstr "Darrera modificació el"

#. module: hr_employee_calendar_planning
#: model:ir.model,name:hr_employee_calendar_planning.model_resource_calendar
msgid "Resource Working Time"
msgstr "Temps de treball"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__date_start
msgid "Start Date"
msgstr "Data d'Inici"

#. module: hr_employee_calendar_planning
#: model:ir.model.fields,field_description:hr_employee_calendar_planning.field_hr_employee_calendar__calendar_id
msgid "Working Time"
msgstr "Temps de treball"

#. module: hr_employee_calendar_planning
#. odoo-python
#: code:addons/hr_employee_calendar_planning/models/hr_employee.py:0
msgid "You can not create employees without any calendar."
msgstr ""
Loading