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

[15.0][REF][MIG]hr_holidays_validity_date #152

Open
wants to merge 20 commits into
base: 15.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
97 changes: 97 additions & 0 deletions hr_holidays_validity_date/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
=========================
HR holidays validity date
=========================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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/15.0/hr_holidays_validity_date
: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-15-0/hr-holidays-15-0-hr_holidays_validity_date
: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=15.0
:alt: Try me on Runboat

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

This module was written to define start and end date on holidays type.

**Table of contents**

.. contents::
:local:

Changelog
=========

At first this module added two new fields to the Leave Type model, the
start and the end of a range that meant the time interval where that type
could be requested.

In 11.0 it was added that it could be chosen whether this was a constraint or
simply a message.

In 12.0 Odoo added the range feature in their Leaves module (validity_start and
validity_stop) so nowadays this just
adds the feature that lets you chose if you want a warning or a constraint.

In 15.0 validity dates are in the allocation but in some business scenarios
we may want to restrict the dates on leave types where allocations are not
mandatoty.

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_validity_date%0Aversion:%2015.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
~~~~~~~

* ACSONE SA/NV

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

* Adrien Peiffer <adrien.peiffer@acsone.eu>
* Damien Crier <damien.crier@camptocamp.com>
* Jaime Arroyo <jaime.arroyo@creublanca.es>
* Aaron Henriquez <aaron.henriquez@forgeflow.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/15.0/hr_holidays_validity_date>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions hr_holidays_validity_date/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions hr_holidays_validity_date/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "HR holidays validity date",
"summary": """
Allow to define start and end date on holidays type.""",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr-holidays",
"category": "Human Resources",
"version": "15.0.2.0.0",
"license": "AGPL-3",
"depends": ["hr_holidays"],
"data": [
"views/hr_holidays_view.xml",
"views/hr_leave_type_view.xml",
],
"development_status": "Production/Stable",
"installable": True,
}
66 changes: 66 additions & 0 deletions hr_holidays_validity_date/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_validity_date
#
# Translators:
# abdullah alsabi <alsabi.abdullah@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-16 03:47+0000\n"
"PO-Revision-Date: 2018-03-16 03:47+0000\n"
"Last-Translator: abdullah alsabi <alsabi.abdullah@gmail.com>, 2018\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: hr_holidays_validity_date
#: model_terms:ir.ui.view,arch_db:hr_holidays_validity_date.hr_leave_view_form
msgid ""
"<i class=\"fa fa-info-circle\" role=\"alert\" aria-label=\"Warning\" title="
"\"Warning\"/>"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,help:hr_holidays_validity_date.field_hr_leave__restrict_dates
#: model:ir.model.fields,help:hr_holidays_validity_date.field_hr_leave_type__restrict_dates
msgid ""
"Check this if you want to forbid requesting leaves outside this range, "
"otherwise it will just display a warning to the user."
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,field_description:hr_holidays_validity_date.field_hr_leave_type__restrict_dates
msgid "Restrict"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,field_description:hr_holidays_validity_date.field_hr_leave__restrict_dates
msgid "Restrict dates"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model,name:hr_holidays_validity_date.model_hr_leave
msgid "Time Off"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model,name:hr_holidays_validity_date.model_hr_leave_type
msgid "Time Off Type"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,field_description:hr_holidays_validity_date.field_hr_leave__warning_validity
msgid "Warning Validity"
msgstr ""

#~ msgid "Leave"
#~ msgstr "إجازة"

#~ msgid "Leave Type"
#~ msgstr "نوع الإجازة"
66 changes: 66 additions & 0 deletions hr_holidays_validity_date/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_validity_date
#
# Translators:
# Lukáš Spurný <lukasspurny8@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-16 03:47+0000\n"
"PO-Revision-Date: 2018-03-16 03:47+0000\n"
"Last-Translator: Lukáš Spurný <lukasspurny8@gmail.com>, 2018\n"
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/"
"teams/23907/cs_CZ/)\n"
"Language: cs_CZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#. module: hr_holidays_validity_date
#: model_terms:ir.ui.view,arch_db:hr_holidays_validity_date.hr_leave_view_form
msgid ""
"<i class=\"fa fa-info-circle\" role=\"alert\" aria-label=\"Warning\" title="
"\"Warning\"/>"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,help:hr_holidays_validity_date.field_hr_leave__restrict_dates
#: model:ir.model.fields,help:hr_holidays_validity_date.field_hr_leave_type__restrict_dates
msgid ""
"Check this if you want to forbid requesting leaves outside this range, "
"otherwise it will just display a warning to the user."
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,field_description:hr_holidays_validity_date.field_hr_leave_type__restrict_dates
msgid "Restrict"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,field_description:hr_holidays_validity_date.field_hr_leave__restrict_dates
msgid "Restrict dates"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model,name:hr_holidays_validity_date.model_hr_leave
msgid "Time Off"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model,name:hr_holidays_validity_date.model_hr_leave_type
msgid "Time Off Type"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,field_description:hr_holidays_validity_date.field_hr_leave__warning_validity
msgid "Warning Validity"
msgstr ""

#~ msgid "Leave"
#~ msgstr "Opustit"

#~ msgid "Leave Type"
#~ msgstr "Typ dovolené"
90 changes: 90 additions & 0 deletions hr_holidays_validity_date/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_validity_date
#
# Translators:
# Niki Waibel, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-16 03:47+0000\n"
"PO-Revision-Date: 2018-12-20 08:58+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\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 3.3\n"

#. module: hr_holidays_validity_date
#: model_terms:ir.ui.view,arch_db:hr_holidays_validity_date.hr_leave_view_form
msgid ""
"<i class=\"fa fa-info-circle\" role=\"alert\" aria-label=\"Warning\" title="
"\"Warning\"/>"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,help:hr_holidays_validity_date.field_hr_leave__restrict_dates
#: model:ir.model.fields,help:hr_holidays_validity_date.field_hr_leave_type__restrict_dates
msgid ""
"Check this if you want to forbid requesting leaves outside this range, "
"otherwise it will just display a warning to the user."
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,field_description:hr_holidays_validity_date.field_hr_leave_type__restrict_dates
#, fuzzy
msgid "Restrict"
msgstr "Startdatum"

#. module: hr_holidays_validity_date
#: model:ir.model.fields,field_description:hr_holidays_validity_date.field_hr_leave__restrict_dates
msgid "Restrict dates"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model,name:hr_holidays_validity_date.model_hr_leave
msgid "Time Off"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model,name:hr_holidays_validity_date.model_hr_leave_type
msgid "Time Off Type"
msgstr ""

#. module: hr_holidays_validity_date
#: model:ir.model.fields,field_description:hr_holidays_validity_date.field_hr_leave__warning_validity
msgid "Warning Validity"
msgstr ""

#~ msgid "Leave"
#~ msgstr "Urlaub"

#~ msgid "Leave Type"
#~ msgstr "Urlaubsart"

#~ msgid "Expiry Date"
#~ msgstr "Verfallsdatum"

#~ msgid "Start Date"
#~ msgstr "Startdatum"

#, fuzzy
#~| msgid "The start date must be anterior to the end date."
#~ msgid "The start date must be greater than the end date."
#~ msgstr "Das Startdatum muss vor dem Enddatum liegen."

#, fuzzy
#~| msgid "Use validity dates"
#~ msgid "Use Validity Dates"
#~ msgstr "Zeitlich beschränkte Daten verwenden"

#~ msgid ""
#~ "leaves on %s type must be taken between %s and\n"
#~ " %s"
#~ msgstr ""
#~ "Urlaub mit dem Typ: %s muss zwischen %s und\n"
#~ " %s liegen"
Loading
Loading