Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] hr_holidays_leave_repeated: Migration to 16.0 #158

Open
wants to merge 12 commits into
base: 16.0
Choose a base branch
from
Open
95 changes: 95 additions & 0 deletions hr_holidays_leave_repeated/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
==========================
HR Holidays leave repeated
==========================

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

.. |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/licence-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--holidays-lightgray.png?logo=github
:target: https://github.com/OCA/hr-holidays/tree/16.0/hr_holidays_leave_repeated
:alt: OCA/hr-holidays
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-holidays-16-0/hr-holidays-16-0-hr_holidays_leave_repeated
: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-holidays&target_branch=16.0
:alt: Try me on Runboat

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

This module allows to create periodical leaves.

**Table of contents**

.. contents::
:local:

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

#. Set a particular leave type with flag Repeat set to True.

Usage
=====

#. Create a leave request, selecting the leave type having flag Repeat set to True.
#. Set the 'Repeat Mode' field to 'Number of Times'. Set the proper values for 'Repeat Every' and 'Repeat # times'.
#. Alternatively set the 'Repeat Mode' field to 'End Date', then set 'Repeat Every' and 'Repeat End Date'.
#. Create (save) the leave request. All the periodical leave requests are automatically created.

Note for HR Time Off responsibles : creating repeated leaves can only be used when selecting Mode = "By Employee" and that all selected employees should share the same resource calendar, otherwise an error is raised.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr-holidays/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-holidays/issues/new?body=module:%20hr_holidays_leave_repeated%0Aversion:%2016.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
~~~~~~~

* Onestein
* Le Filament

Contributors
~~~~~~~~~~~~

* Andrea Stirpe <[email protected]>
* Hieu, Vo Minh Bao <[email protected]>
* Italo LOPES <[email protected]>
* Rémi - Le Filament <https://le-filament.com>

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-holidays <https://github.com/OCA/hr-holidays/tree/16.0/hr_holidays_leave_repeated>`_ 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_holidays_leave_repeated/__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
15 changes: 15 additions & 0 deletions hr_holidays_leave_repeated/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2016-2019 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "HR Holidays leave repeated",
"summary": "Define periodical leaves",
"author": "Onestein, Le Filament, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr-holidays",
"category": "Human Resources",
"version": "16.0.1.1.0",
"license": "AGPL-3",
"depends": ["hr_holidays"],
"data": ["views/hr_leave_type.xml", "views/hr_leave.xml"],
"installable": True,
}
153 changes: 153 additions & 0 deletions hr_holidays_leave_repeated/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_leave_repeated
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-02-14 11:16+0000\n"
"Last-Translator: Noel estudillo <[email protected]>\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_holidays_leave_repeated
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave__display_name
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave_type__display_name
msgid "Display Name"
msgstr ""

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields.selection,name:hr_holidays_leave_repeated.selection__hr_leave__repeat_mode__date
msgid "End Date"
msgstr "Data límit"

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields.selection,name:hr_holidays_leave_repeated.selection__hr_leave__repeat_every__month
msgid "Every four weeks"
msgstr "Cada quatre setmanes"

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields.selection,name:hr_holidays_leave_repeated.selection__hr_leave__repeat_every__biweek
msgid "Every two weeks"
msgstr "Cada dues setmanes"

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields.selection,name:hr_holidays_leave_repeated.selection__hr_leave__repeat_every__week
msgid "Every week"
msgstr "Cada setmana"

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields.selection,name:hr_holidays_leave_repeated.selection__hr_leave__repeat_every__workday
msgid "Every workday"
msgstr "Cada dia laboral"

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave__id
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave_type__id
msgid "ID"
msgstr ""

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave____last_update
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave_type____last_update
msgid "Last Modified on"
msgstr ""

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields.selection,name:hr_holidays_leave_repeated.selection__hr_leave__repeat_mode__times
msgid "Number of Times"
msgstr "Nombre de vegades"

#. module: hr_holidays_leave_repeated
#: code:addons/hr_holidays_leave_repeated/models/hr_leave.py:0
#, python-format
msgid "Please set a positive amount of repetitions."
msgstr "Si us plau, establiu una quantitat positiva de repeticions."

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave__holiday_type_repeat
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave_type__repeat
msgid "Repeat"
msgstr "Repetiu"

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave__repeat_limit
msgid "Repeat # times"
msgstr "Repetiu # vegades"

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave__repeat_end_date
msgid "Repeat End Date"
msgstr "Repetiu la data de finalització"

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave__repeat_every
msgid "Repeat Every"
msgstr "Repetiu cada"

#. module: hr_holidays_leave_repeated
#: model:ir.model.fields,field_description:hr_holidays_leave_repeated.field_hr_leave__repeat_mode
msgid "Repeat Mode"
msgstr "Mode de repetició"

#. module: hr_holidays_leave_repeated
#: code:addons/hr_holidays_leave_repeated/models/hr_leave.py:0
#, python-format
msgid "The Repeat End Date cannot be in the past"
msgstr "La data de finalització de repetició no pot ser en el passat"

#. module: hr_holidays_leave_repeated
#: code:addons/hr_holidays_leave_repeated/models/hr_leave.py:0
#, python-format
msgid ""
"The repetition is based on workdays: the duration of the leave request must "
"not exceed 1 day."
msgstr ""
"La repetició es basa en dies laborables: la durada de la sol·licitud "
"d'excedència no ha de ser superior a 1 dia."

#. module: hr_holidays_leave_repeated
#: code:addons/hr_holidays_leave_repeated/models/hr_leave.py:0
#, python-format
msgid ""
"The repetition is every four weeks: the duration of the leave request must "
"not exceed 28 days."
msgstr ""
"La reiteració és cada quatre setmanes: la durada de la sol·licitud "
"d'excedència no ha de superar els 28 dies."

#. module: hr_holidays_leave_repeated
#: code:addons/hr_holidays_leave_repeated/models/hr_leave.py:0
#, python-format
msgid ""
"The repetition is every two weeks: the duration of the leave request must "
"not exceed 2 weeks."
msgstr ""
"La repetició és cada dues setmanes: la durada de la sol·licitud d'excedència "
"no ha de superar les 2 setmanes."

#. module: hr_holidays_leave_repeated
#: code:addons/hr_holidays_leave_repeated/models/hr_leave.py:0
#, python-format
msgid ""
"The repetition is every week: the duration of the leave request must not "
"exceed 1 week."
msgstr ""
"La repetició és cada setmana: la durada de la sol·licitud d'excedència no ha "
"de superar 1 setmana."

#. module: hr_holidays_leave_repeated
#: model:ir.model,name:hr_holidays_leave_repeated.model_hr_leave
msgid "Time Off"
msgstr "Temps lliure"

#. module: hr_holidays_leave_repeated
#: model:ir.model,name:hr_holidays_leave_repeated.model_hr_leave_type
msgid "Time Off Type"
msgstr "Tipus de temps lliure"
Loading
Loading