add Modules for leave management

develop
Andreas Osim 2019-02-18 17:04:07 +01:00
parent 0a5b8ca6b5
commit 0155b6c201
98 changed files with 9637 additions and 0 deletions

View File

@ -0,0 +1,118 @@
===============================
Extended Leave Days Computation
===============================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/11.0/hr_holidays_compute_days
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-11-0/hr-11-0-hr_holidays_compute_days
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/116/11.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
It extends the computation of the number of days in leaves with:
* Possibility of including rest days (if configured in that way).
* Force full days (if configured in that way).
It also eases the manual entry of the leave, including a date selection
instead of date and time.
Finally, it limits the possibility to manually change number of days if you
are not leave manager.
**Table of contents**
.. contents::
:local:
Configuration
=============
#. Go to *Leaves > Configuration*
#. For each leave type, you can mark:
* **Exclude Rest Days**: If you want to remove for the total number of days
those which are not workable.
* **Compute Full Days**: It will compute days in the interval as full,
independently from the starting/ending time.
#. For being able to manually change number of days, you have to be
*Leave / Manager*. If not, the field will be read only.
Usage
=====
#. Go to *Leaves > Dashboard*.
#. Select dragging on the calendar the days you want to be on leave, or go
to the form view for selecting start and end dates.
#. On this form, you have 2 new checks for selecting full days instead of
days with time. If you deselect one of these checks, you will be able to
select also the starting/ending time of the leave.
#. Select the proper "Leave Type".
#. The number of days will be computed and shown according options on leave
type.
#. If no leave type yet specified, then default configuration is to exclude
rest days.
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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_holidays_compute_days%0Aversion:%2011.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
~~~~~~~
* iDT LABS
* Tecnativa
Contributors
~~~~~~~~~~~~
* Salton Massally <smassally@idtlabs.sl>
* Fekete Mihai <feketemihai@gmail.com>
* Ivan Yelizariev <yelizariev@it-projects.info>
* Bassirou Ndaw <b.ndaw@ergobit.org>
* `Tecnativa <https://www.tecnativa.com>`__:
* Pedro M. Baeza
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/11.0/hr_holidays_compute_days>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
from .hooks import pre_init_hook

View File

@ -0,0 +1,25 @@
# Copyright 2015 iDT LABS (http://www.@idtlabs.sl)
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Extended Leave Days Computation',
'version': '11.0.1.0.0',
'category': 'Human Resources',
'license': 'AGPL-3',
'summary': 'Allows to take into account in leave days '
'computation rest days or full days',
'author': 'iDT LABS, '
'Tecnativa, '
'Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/hr',
'depends': [
'hr_holidays',
],
'data': [
'views/hr_holidays_status_views.xml',
'views/hr_holidays_views.xml',
],
'installable': True,
'pre_init_hook': 'pre_init_hook',
}

View File

@ -0,0 +1,10 @@
# Copyright 2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
def pre_init_hook(cr):
"""Default all existing leaves for not being full day precreating both
boolean columns.
"""
cr.execute("ALTER TABLE hr_holidays ADD from_full_day BOOLEAN")
cr.execute("ALTER TABLE hr_holidays ADD to_full_day BOOLEAN")

View File

@ -0,0 +1,99 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# abdullah alsabi <alsabi.abdullah@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-10 04:30+0000\n"
"PO-Revision-Date: 2017-06-10 04:30+0000\n"
"Last-Translator: abdullah alsabi <alsabi.abdullah@gmail.com>, 2017\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_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "الموظف"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr "إجازة"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr "نوع الإجازة"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""

View File

@ -0,0 +1,117 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# 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-02-23 03:45+0000\n"
"PO-Revision-Date: 2018-02-23 03:45+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_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Zaměstnanec"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr "Vyloučit dny odpočinku"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
"Je-li povoleno, volno zaměstnanců je přeskočeno ve výpočtu počtu dní volna."
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr "Opustit"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr "Typ dovolené"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""
#~ msgid "Exclude Public Holidays"
#~ msgstr "Vyřadit státní svátky"
#~ msgid "If enabled, public holidays are skipped in leave days calculation."
#~ msgstr ""
#~ "Je-li zapnuto, státní svátky jsou vynechány ve výpočtu počtu dní volna."
#~ msgid ""
#~ "You cannot schedule the end date on a public holiday or employee's rest "
#~ "day"
#~ msgstr "Datum ukončení nelze naplánovat na státní svátek nebo den odpočinku"
#~ msgid ""
#~ "You cannot schedule the start date on a public holiday or employee's rest "
#~ "day"
#~ msgstr ""
#~ "Datum zahájení nemůžete naplánovat na státní svátek nebo den odpočinku"

View File

@ -0,0 +1,124 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
# Niki Waibel <niki.waibel@gmail.com>, 2017
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-28 01:43+0000\n"
"PO-Revision-Date: 2018-12-19 13: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_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr "Reservierung"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr "volle Tage berechnen"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr "Startdatum"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr "Enddatum"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Angestellte(r)"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr "Ruhetage ausschließen"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr "Startdatum (ganztags)"
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr "ganztags"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
"Wenn der Haken gesetzt ist, wird der Urlaubstag des Mitarbeiters in der "
"Urlaubstageberechnung übersprungen."
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
"Wenn der Haken gesetzt ist, bezieht sich die Anzahl der Tage auf ganze Tage"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr "Urlaub"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr "Urlaubsart"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr "Anzahl der Tage des Urlaubsantrags gemäß des Arbeitszeitplans."
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr "Ressourcenkalender"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr "Enddatum (ganztags)"
#~ msgid "Exclude Public Holidays"
#~ msgstr "Feiertage ausschließen"
#~ msgid "If enabled, public holidays are skipped in leave days calculation."
#~ msgstr ""
#~ "Wenn diese Option aktiviert ist, werden die Feiertage in der "
#~ "Urlaubstageberechnung übersprungen."
#~ msgid ""
#~ "You cannot schedule the end date on a public holiday or employee's rest "
#~ "day"
#~ msgstr ""
#~ "Sie können das Enddatum nicht auf einen Feiertag oder einen Mitarbeiter "
#~ "Ruhetag legen."
#~ msgid ""
#~ "You cannot schedule the start date on a public holiday or employee's rest "
#~ "day"
#~ msgstr ""
#~ "Sie können das Anfangsdatum nicht auf einen Feiertag oder einen "
#~ "Mitarbeiter Ruhetag legen."

View File

@ -0,0 +1,121 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-27 18:50+0000\n"
"PO-Revision-Date: 2017-12-27 18:50+0000\n"
"Last-Translator: Pedro M. Baeza <pedro.baeza@gmail.com>, 2016\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\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"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr "Asignación"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr "Calcular días completos"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
#, fuzzy
msgid "Date From Full"
msgstr "Fecha desde completa"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
#, fuzzy
msgid "Date To Full"
msgstr "Fecha hasta completa"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Empleado"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr "Excluir los días de descanso"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
#, fuzzy
msgid "From Full Day"
msgstr "Día desde completo"
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr "Día completo"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
"Si está habilitado, los días de descanso del empleado serán saltados en el "
"cálculo de las ausencias."
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
"Si está habilitado, el número de días calculado será siempre para los días "
"completos en el intervalo"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr "Ausencia"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr "Tipo de ausencia"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr "Calendario recurso"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
#, fuzzy
msgid "To Full Day"
msgstr "Día hasta completo"
#~ msgid "Exclude Public Holidays"
#~ msgstr "Excluir vacaciones públicas"
#~ msgid "If enabled, public holidays are skipped in leave days calculation."
#~ msgstr ""
#~ "Si está habilitado, las vacaciones públicas serán saltadas en el cálculo "
#~ "de las ausencias."
#~ msgid ""
#~ "You cannot schedule the start date on a public holiday or employee's rest "
#~ "day"
#~ msgstr ""
#~ "No puede programar la fecha de inicio en una vacación pública o un día de "
#~ "descanso del empleado."

View File

@ -0,0 +1,97 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: hr (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-19 02:40+0000\n"
"PO-Revision-Date: 2016-05-18 13:34+0000\n"
"Last-Translator: <>\n"
"Language-Team: Finnish (http://www.transifex.com/oca/OCA-hr-8-0/language/"
"fi/)\n"
"Language: fi\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"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Työntekijä"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""

View File

@ -0,0 +1,123 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
# leemannd <denis.leemann@camptocamp.com>, 2017
# Alexandre Fayolle <alexandre.fayolle@camptocamp.com>, 2017
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-23 03:45+0000\n"
"PO-Revision-Date: 2018-02-23 03:45+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\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"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Employé"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr "Exclure les jours de repos"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
"Si activé, les jours de repos sont ignorés dans le décompte des jours de "
"congé."
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr "Congé"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr "Type de Congé"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""
#~ msgid "Exclude Public Holidays"
#~ msgstr "Exclure les jours fériés"
#~ msgid "If enabled, public holidays are skipped in leave days calculation."
#~ msgstr ""
#~ "Si activé, les jours fériés sont ignorés dans le décompte des jours de "
#~ "congé."
#~ msgid ""
#~ "You cannot schedule the end date on a public holiday or employee's rest "
#~ "day"
#~ msgstr ""
#~ "Vous ne pouvez pas planifier la fin d'un congé sur un jour férié ou un "
#~ "jour de repos de l'employé"
#~ msgid ""
#~ "You cannot schedule the start date on a public holiday or employee's rest "
#~ "day"
#~ msgstr ""
#~ "Vous ne pouvez pas planifier le début d'un congé sur un jour férié ou un "
#~ "jour de repos de l'employé"

View File

@ -0,0 +1,106 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
# Bole <bole@dajmi5.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-04 06:52+0000\n"
"PO-Revision-Date: 2017-07-04 06:52+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Djelatnik"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr "Isključi dane odmora"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr "Odsustvo"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr "Vrsta odsustva"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""
#~ msgid "Exclude Public Holidays"
#~ msgstr "Isključi državne praznike"
#~ msgid "If enabled, public holidays are skipped in leave days calculation."
#~ msgstr ""
#~ "Ako je omogućeno, jdržavni praznici su isključeni iz izračuna broja "
#~ "slobodnih dana."

View File

@ -0,0 +1,106 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
# Bole <bole@dajmi5.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-29 03:45+0000\n"
"PO-Revision-Date: 2016-11-29 03:45+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2016\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/"
"hr_HR/)\n"
"Language: hr_HR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Djelatnik"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr "Isključi godišnji odmor"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr "Ako je omogućeno, slobodni dani su isključeni iz izračuna."
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr "Odsustvo"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr "Tip odsustva"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""
#~ msgid "Exclude Public Holidays"
#~ msgstr "Isključi praznike"
#~ msgid "If enabled, public holidays are skipped in leave days calculation."
#~ msgstr ""
#~ "Ako je omogućemo, praznici su isključeni iz izračuna slobodnih dana."

View File

@ -0,0 +1,90 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "If enabled, the number of days computed will be always for the full days in the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""

View File

@ -0,0 +1,97 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: hr (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-19 02:40+0000\n"
"PO-Revision-Date: 2016-05-18 13:34+0000\n"
"Last-Translator: <>\n"
"Language-Team: Italian (http://www.transifex.com/oca/OCA-hr-8-0/language/"
"it/)\n"
"Language: it\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"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Dipendente"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""

View File

@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
# Viktoras Norkus <viktoras@bmx.lt>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-17 12:16+0000\n"
"PO-Revision-Date: 2018-01-17 12:16+0000\n"
"Last-Translator: Viktoras Norkus <viktoras@bmx.lt>, 2018\n"
"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n"
"Language: lt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n"
"%100<10 || n%100>=20) ? 1 : 2);\n"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Darbuotojas"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""

View File

@ -0,0 +1,102 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# Cas Vissers <casvissers@brahoo.nl>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-28 03:17+0000\n"
"PO-Revision-Date: 2017-03-28 03:17+0000\n"
"Last-Translator: Cas Vissers <casvissers@brahoo.nl>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
"teams/23907/nl_NL/)\n"
"Language: nl_NL\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"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Werknemer"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""
#~ msgid "Exclude Public Holidays"
#~ msgstr "Vakantiedagen uitsluiten"

View File

@ -0,0 +1,97 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: hr (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-19 02:40+0000\n"
"PO-Revision-Date: 2016-05-18 13:34+0000\n"
"Last-Translator: <>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-hr-8-0/"
"language/pt_BR/)\n"
"Language: pt_BR\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"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Empregado"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""

View File

@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: hr (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-19 02:40+0000\n"
"PO-Revision-Date: 2016-05-18 13:34+0000\n"
"Last-Translator: <>\n"
"Language-Team: Romanian (http://www.transifex.com/oca/OCA-hr-8-0/language/"
"ro/)\n"
"Language: ro\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%100>19)||((n%100==0)&&(n!=0)))?"
"2:1));\n"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Angajat"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""

View File

@ -0,0 +1,117 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_compute_days
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-29 01:35+0000\n"
"PO-Revision-Date: 2016-11-29 01:35+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3);\n"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Allocation"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid "Compute Full Days"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_from_full
msgid "Date From Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_date_to_full
msgid "Date To Full"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_employee
msgid "Employee"
msgstr "Kader"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid "Exclude Rest Days"
msgstr "Izloči proste dneve"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_from_full_day
msgid "From Full Day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.ui.view,arch_db:hr_holidays_compute_days.edit_holiday_new
msgid "Full day"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_exclude_rest_days
msgid ""
"If enabled, the employee's day off is skipped in leave days calculation."
msgstr ""
"Če omogočeno, se prosti dnevni zaposlenega izpustijo pri izračunu dni "
"dopusta."
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_status_compute_full_days
msgid ""
"If enabled, the number of days computed will be always for the full days in "
"the interval"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays
msgid "Leave"
msgstr "Dopust"
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_hr_holidays_status
msgid "Leave Type"
msgstr "Tip dopusta"
#. module: hr_holidays_compute_days
#: model:ir.model.fields,help:hr_holidays_compute_days.field_hr_holidays_number_of_days_temp_related
msgid "Number of days of the leave request according to your working schedule."
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model,name:hr_holidays_compute_days.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_compute_days
#: model:ir.model.fields,field_description:hr_holidays_compute_days.field_hr_holidays_to_full_day
msgid "To Full Day"
msgstr ""
#~ msgid "Exclude Public Holidays"
#~ msgstr "Izloči javne praznike"
#~ msgid "If enabled, public holidays are skipped in leave days calculation."
#~ msgstr "Če omogočeno, se javne praznike izpusti pri izračunu dni dopusta."
#~ msgid ""
#~ "You cannot schedule the end date on a public holiday or employee's rest "
#~ "day"
#~ msgstr "Končnega datuma ne morete nastaviti na praznik ali prosti dan kadra"
#~ msgid ""
#~ "You cannot schedule the start date on a public holiday or employee's rest "
#~ "day"
#~ msgstr ""
#~ "Začetnega datuma ne morete nastaviti na praznik ali prosti dan kadra"

View File

@ -0,0 +1,6 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import hr_employee
from . import hr_holidays_status
from . import hr_holidays
from . import resource_calendar

View File

@ -0,0 +1,20 @@
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models
class HrEmployee(models.Model):
_inherit = 'hr.employee'
def get_day_work_hours_count(self, day_date, calendar=None):
"""Return 24 as work hours when detecting through context and weekday
that the day passed is one of the rest days.
"""
if self.env.context.get('include_rest_days') and calendar:
real_weekdays = calendar.with_context(
include_rest_days=False,
)._get_weekdays()
if day_date.weekday() not in real_weekdays:
return 24
return super().get_day_work_hours_count(day_date, calendar=calendar)

View File

@ -0,0 +1,159 @@
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
from datetime import time
from dateutil import tz
class HrHolidays(models.Model):
_inherit = 'hr.holidays'
def _default_from_full_day(self):
"""Detect if we have select full day in calendar and return the
full day option accordingly.
"""
context = self.env.context
if context.get('default_date_from'):
dt = fields.Datetime.from_string(
context['default_date_from']
).replace(tzinfo=tz.gettz(self.env.user.tz)).astimezone(tz.tzutc())
return dt.hour == 5 and dt.minute == 0 and dt.second == 0
return False
def _default_to_full_day(self):
"""Detect if we have select full day in calendar and return the
full day option accordingly.
"""
context = self.env.context
if context.get('default_date_to'):
dt = fields.Datetime.from_string(
context['default_date_to']
).replace(tzinfo=tz.gettz(self.env.user.tz)).astimezone(tz.tzutc())
return dt.hour == 17 and dt.minute == 0 and dt.second == 0
return False
from_full_day = fields.Boolean(
default=lambda self: self._default_from_full_day(),
readonly=True,
copy=False,
states={
'draft': [('readonly', False)],
'confirm': [('readonly', False)]
},
)
to_full_day = fields.Boolean(
default=lambda self: self._default_to_full_day(),
readonly=True,
copy=False,
states={
'draft': [('readonly', False)],
'confirm': [('readonly', False)]
},
)
date_from_full = fields.Date(
compute="_compute_date_from_full",
inverse="_inverse_date_from_full",
readonly=True,
states={
'draft': [('readonly', False)],
'confirm': [('readonly', False)]
},
)
date_to_full = fields.Date(
compute="_compute_date_to_full",
inverse="_inverse_date_to_full",
readonly=True,
states={
'draft': [('readonly', False)],
'confirm': [('readonly', False)]
},
)
# Supporting field for avoiding limitation on storing readonly fields
number_of_days_temp_related = fields.Float(
related="number_of_days_temp", readonly=True,
)
@api.depends('date_from')
def _compute_date_from_full(self):
"""Put day in employee's user timezone, or user timezone as fallback"""
for record in self.filtered('date_from'):
tz_name = record.employee_id.user_id.tz or record.env.user.tz
dt = fields.Datetime.from_string(record.date_from).replace(
tzinfo=tz.tzutc(),
).astimezone(tz.gettz(tz_name)).date()
record.date_from_full = fields.Date.to_string(dt)
@api.depends('date_to')
def _compute_date_to_full(self):
"""Put day in employee's user timezone, or user timezone as fallback"""
for record in self.filtered('date_to'):
tz_name = record.employee_id.user_id.tz or record.env.user.tz
dt = fields.Datetime.from_string(record.date_to).replace(
tzinfo=tz.tzutc(),
).astimezone(tz.gettz(tz_name)).date()
record.date_to_full = fields.Date.to_string(dt)
def _inverse_date_from_full(self):
"""Put start of the day in employee's user timezone, or user timezone
as fallback.
"""
for record in self.filtered('from_full_day'):
tz_name = record.employee_id.user_id.tz or record.env.user.tz
dt = fields.Datetime.from_string(record.date_from_full).replace(
hour=0, minute=0, second=0, microsecond=0,
tzinfo=tz.gettz(tz_name),
).astimezone(tz.tzutc())
record.date_from = fields.Datetime.to_string(dt)
def _inverse_date_to_full(self):
"""Put end of the day in employee's user timezone, or user timezone
as fallback.
"""
for record in self.filtered('to_full_day'):
tz_name = record.employee_id.user_id.tz or record.env.user.tz
dt = fields.Datetime.from_string(record.date_to_full).replace(
hour=23, minute=59, second=59, microsecond=999999,
tzinfo=tz.gettz(tz_name),
).astimezone(tz.tzutc())
record.date_to = fields.Datetime.to_string(dt)
@api.onchange('date_from_full', 'from_full_day')
def _onchange_date_from_full(self):
"""As inverse methods only works on save, we have to add an onchange"""
self._inverse_date_from_full()
@api.onchange('date_to_full', 'to_full_day')
def _onchange_date_to_full(self):
"""As inverse methods only works on save, we have to add an onchange"""
self._inverse_date_to_full()
def _onchange_data_hr_holidays_compute_days(self):
"""Trigger the number of days computation also when you change the
employee or the leave type.
"""
self._onchange_date_to()
def _get_number_of_days(self, date_from, date_to, employee_id):
"""Pass context variable for including rest days or change passed dates
when computing full days.
"""
obj = self.with_context(
include_rest_days=not self.holiday_status_id.exclude_rest_days,
)
if self.holiday_status_id.compute_full_days:
dt_from = fields.Datetime.from_string(date_from)
date_from = fields.Datetime.to_string(
dt_from.combine(
dt_from.date(), time(hour=0, minute=0, second=0),
),
)
dt_to = fields.Datetime.from_string(date_to)
date_to = fields.Datetime.to_string(
dt_to.combine(
dt_to.date(), time(hour=23, minute=59, second=59),
),
)
return super(HrHolidays, obj)._get_number_of_days(
date_from, date_to, employee_id,
)

View File

@ -0,0 +1,22 @@
# Copyright 2015 iDT LABS (http://www.@idtlabs.sl)
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class HrHolidaysStatus(models.Model):
_inherit = 'hr.holidays.status'
exclude_rest_days = fields.Boolean(
string='Exclude Rest Days',
default=True,
help="If enabled, the employee's day off is skipped in leave days "
"calculation.",
)
compute_full_days = fields.Boolean(
string="Compute Full Days",
default=True,
help="If enabled, the number of days computed will be always for the "
"full days in the interval",
)

View File

@ -0,0 +1,43 @@
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models
from odoo.addons.resource.models.resource import to_naive_utc
from datetime import datetime, time
class ResourceCalendar(models.Model):
_inherit = 'resource.calendar'
def _get_weekdays(self):
"""Include full week when we detect by context that we should include
all days in leave computation.
"""
if self.env.context.get('include_rest_days'):
return range(7)
return super()._get_weekdays()
def _get_day_work_intervals(self, day_date, start_time=None, end_time=None,
compute_leaves=False, resource_id=None):
"""Return fake work intervals for full day when asking for rest days
included through ``_get_weekdays``.
"""
if self.env.context.get('include_rest_days'):
real_weekdays = self.with_context(
include_rest_days=False,
)._get_weekdays()
if day_date.weekday() not in real_weekdays:
user = self.env.user
return [self._interval_new(
to_naive_utc(datetime.combine(
day_date, time(hour=0, minute=0, second=0),
), user),
to_naive_utc(datetime.combine(
day_date, time(hour=23, minute=59, second=59),
), user),
{},
)]
return super()._get_day_work_intervals(
day_date, start_time=start_time, end_time=end_time,
compute_leaves=compute_leaves, resource_id=resource_id,
)

View File

@ -0,0 +1,10 @@
#. Go to *Leaves > Configuration*
#. For each leave type, you can mark:
* **Exclude Rest Days**: If you want to remove for the total number of days
those which are not workable.
* **Compute Full Days**: It will compute days in the interval as full,
independently from the starting/ending time.
#. For being able to manually change number of days, you have to be
*Leave / Manager*. If not, the field will be read only.

View File

@ -0,0 +1,7 @@
* Salton Massally <smassally@idtlabs.sl>
* Fekete Mihai <feketemihai@gmail.com>
* Ivan Yelizariev <yelizariev@it-projects.info>
* Bassirou Ndaw <b.ndaw@ergobit.org>
* `Tecnativa <https://www.tecnativa.com>`__:
* Pedro M. Baeza

View File

@ -0,0 +1,10 @@
It extends the computation of the number of days in leaves with:
* Possibility of including rest days (if configured in that way).
* Force full days (if configured in that way).
It also eases the manual entry of the leave, including a date selection
instead of date and time.
Finally, it limits the possibility to manually change number of days if you
are not leave manager.

View File

@ -0,0 +1,11 @@
#. Go to *Leaves > Dashboard*.
#. Select dragging on the calendar the days you want to be on leave, or go
to the form view for selecting start and end dates.
#. On this form, you have 2 new checks for selecting full days instead of
days with time. If you deselect one of these checks, you will be able to
select also the starting/ending time of the leave.
#. Select the proper "Leave Type".
#. The number of days will be computed and shown according options on leave
type.
#. If no leave type yet specified, then default configuration is to exclude
rest days.

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -0,0 +1,468 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
<title>Extended Leave Days Computation</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="extended-leave-days-computation">
<h1 class="title">Extended Leave Days Computation</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/hr/tree/11.0/hr_holidays_compute_days"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/hr-11-0/hr-11-0-hr_holidays_compute_days"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/116/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>It extends the computation of the number of days in leaves with:</p>
<ul class="simple">
<li>Possibility of including rest days (if configured in that way).</li>
<li>Force full days (if configured in that way).</li>
</ul>
<p>It also eases the manual entry of the leave, including a date selection
instead of date and time.</p>
<p>Finally, it limits the possibility to manually change number of days if you
are not leave manager.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
<li><a class="reference internal" href="#usage" id="id2">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<ol class="arabic simple">
<li>Go to <em>Leaves &gt; Configuration</em></li>
<li>For each leave type, you can mark:<ul>
<li><strong>Exclude Rest Days</strong>: If you want to remove for the total number of days
those which are not workable.</li>
<li><strong>Compute Full Days</strong>: It will compute days in the interval as full,
independently from the starting/ending time.</li>
</ul>
</li>
<li>For being able to manually change number of days, you have to be
<em>Leave / Manager</em>. If not, the field will be read only.</li>
</ol>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
<ol class="arabic simple">
<li>Go to <em>Leaves &gt; Dashboard</em>.</li>
<li>Select dragging on the calendar the days you want to be on leave, or go
to the form view for selecting start and end dates.</li>
<li>On this form, you have 2 new checks for selecting full days instead of
days with time. If you deselect one of these checks, you will be able to
select also the starting/ending time of the leave.</li>
<li>Select the proper “Leave Type”.</li>
<li>The number of days will be computed and shown according options on leave
type.</li>
<li>If no leave type yet specified, then default configuration is to exclude
rest days.</li>
</ol>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/hr/issues/new?body=module:%20hr_holidays_compute_days%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id4">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id5">Authors</a></h2>
<ul class="simple">
<li>iDT LABS</li>
<li>Tecnativa</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<ul class="simple">
<li>Salton Massally &lt;<a class="reference external" href="mailto:smassally&#64;idtlabs.sl">smassally&#64;idtlabs.sl</a>&gt;</li>
<li>Fekete Mihai &lt;<a class="reference external" href="mailto:feketemihai&#64;gmail.com">feketemihai&#64;gmail.com</a>&gt;</li>
<li>Ivan Yelizariev &lt;<a class="reference external" href="mailto:yelizariev&#64;it-projects.info">yelizariev&#64;it-projects.info</a>&gt;</li>
<li>Bassirou Ndaw &lt;<a class="reference external" href="mailto:b.ndaw&#64;ergobit.org">b.ndaw&#64;ergobit.org</a>&gt;</li>
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Pedro M. Baeza</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/11.0/hr_holidays_compute_days">OCA/hr</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import test_holidays_compute_days

View File

@ -0,0 +1,90 @@
# Copyright 2015 iDT LABS (http://www.@idtlabs.sl)
# Copyright 2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests import common
@common.at_install(False)
@common.post_install(True)
class TestHolidaysComputeDaysBase(common.SavepointCase):
@classmethod
def setUpClass(cls):
super(TestHolidaysComputeDaysBase, cls).setUpClass()
cls.HrHolidays = cls.env['hr.holidays']
cls.calendar = cls.env['resource.calendar'].create({
'name': 'Calendar',
})
for day in range(5): # From monday to friday
cls.calendar.attendance_ids = [
(0, 0, {
'name': 'Attendance',
'dayofweek': str(day),
'hour_from': '08',
'hour_to': '12',
}),
(0, 0, {
'name': 'Attendance',
'dayofweek': str(day),
'hour_from': '14',
'hour_to': '18',
}),
]
cls.employee = cls.env['hr.employee'].create({
'name': 'Employee 1',
'resource_calendar_id': cls.calendar.id,
})
cls.holiday_type = cls.env['hr.holidays.status'].create({
'name': 'Leave Type Test',
'exclude_rest_days': True,
'compute_full_days': True,
})
cls.holiday_type_no_excludes = cls.env['hr.holidays.status'].create({
'name': 'Leave Type Test Without excludes',
'exclude_rest_days': False,
'compute_full_days': False,
})
# Remove timezone for controlling data better
cls.env.user.tz = False
class TestHolidaysComputeDays(TestHolidaysComputeDaysBase):
def test_onchange_dates(self):
holidays = self.HrHolidays.new({
'date_from_full': '1946-12-20',
'date_to_full': '1946-12-21',
'from_full_day': True,
'to_full_day': True,
})
holidays._onchange_date_from_full()
self.assertEqual(holidays.date_from, '1946-12-20 00:00:00')
holidays._onchange_date_to_full()
self.assertEqual(holidays.date_to, '1946-12-21 23:59:59')
def test_compute_dates(self):
holidays = self.HrHolidays.new({
'date_from': '1946-12-20 08:10:00',
'date_to': '1946-12-21 15:45:30',
})
self.assertEqual(holidays.date_from_full, '1946-12-20')
self.assertEqual(holidays.date_to_full, '1946-12-21')
def test_number_days_excluding_full_day_employee(self):
holidays = self.HrHolidays.new({
'date_from': '1946-12-21 00:00:00', # Saturday
'date_to': '1946-12-27 11:00:00', # Friday
'holiday_status_id': self.holiday_type.id,
'employee_id': self.employee.id,
})
holidays._onchange_data_hr_holidays_compute_days()
self.assertEqual(holidays.number_of_days_temp, 5.0)
def test_number_days_not_excluding(self):
holidays = self.HrHolidays.new({
'date_from': '1946-12-23 00:00:00', # Monday
'date_to': '1946-12-29 23:59:59', # Sunday
'holiday_status_id': self.holiday_type_no_excludes.id,
'employee_id': self.employee.id,
})
holidays._onchange_data_hr_holidays_compute_days()
self.assertEqual(holidays.number_of_days_temp, 7.0)

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="edit_holiday_status_form" model="ir.ui.view">
<field name="name">hr.holidays.status.form - Add compute fields</field>
<field name="model">hr.holidays.status</field>
<field name="inherit_id" ref="hr_holidays.edit_holiday_status_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='limit']" position="after">
<field name="exclude_rest_days" />
<field name="compute_full_days" />
</xpath>
</field>
</record>
</odoo>

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="edit_holiday_new" model="ir.ui.view">
<field name="name">Leave Request - Add full day + hide nº of days + show related readonly</field>
<field name="model">hr.holidays</field>
<field name="inherit_id" ref="hr_holidays.edit_holiday_new" />
<field name="arch" type="xml">
<field name="date_from" position="before">
<field name="from_full_day" nolabel="1" class="oe_inline"/>
<label string="Full day" class="oe_inline"/>
<label string="-" class="oe_inline"/>
<field name="to_full_day" nolabel="1" class="oe_inline"/>
<label string="Full day" class="oe_inline"/>
<br/>
<field name="date_from_full" attrs="{'required':[('type', '=', 'remove')], 'invisible': [('from_full_day', '=', False)]}" class="oe_inline"/>
</field>
<field name="date_from" position="attributes">
<attribute name="attrs">{'required':[('type', '=', 'remove')], 'invisible': [('from_full_day', '=', True)]}</attribute>
</field>
<field name="date_to" position="before">
<field name="date_to_full" attrs="{'required':[('type', '=', 'remove')], 'invisible': [('to_full_day', '=', False)]}" class="oe_inline"/>
</field>
<field name="date_to" position="attributes">
<attribute name="attrs">{'required':[('type', '=', 'remove')], 'invisible': [('to_full_day', '=', True)]}</attribute>
</field>
<field name="number_of_days_temp" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="number_of_days_temp" position="after">
<field name="number_of_days_temp_related"
attrs="{'readonly': [('type', '=', 'remove')]}"
/>
</field>
</field>
</record>
<record id="edit_holiday_new_manager" model="ir.ui.view">
<field name="name">Leave Request - # of days editable for manager</field>
<field name="model">hr.holidays</field>
<field name="inherit_id" ref="edit_holiday_new" />
<field name="groups_id" eval="[(4, ref('hr_holidays.group_hr_holidays_manager'))]"/>
<field name="arch" type="xml">
<field name="number_of_days_temp" position="attributes">
<attribute name="invisible">0</attribute>
</field>
<field name="number_of_days_temp_related" position="attributes">
<attribute name="invisible">1</attribute>
</field>
</field>
</record>
</odoo>

View File

@ -0,0 +1,88 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
=======================
HR Holidays Legal Leave
=======================
Allows the define which holiday type is to be considered legal/annual leave type.
Currently Odoo assumes by default leave type with limit=False. This is a problem if
you have more than one 'limited' leave type and specially confusing when trying to
set leaves from the employee form.
Installation
============
* clone the branch 10.0 of the repository https://github.com/OCA/hr
* add the path to this repository in your configuration (addons-path)
* update the module list
* search for "HR Holidays Legal Leave" in your addons
* install the module
Configuration
=============
To configure this module, you need to:
* assign legal leave type via ``Leaves > Configuration``:
* choose Leave type you need
* click ``[Edit]``
* set **Legal/Annual** checkbox
* click ``[Save]``
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/116/10.0
Known issues / Roadmap
======================
By default, Odoo calculated leaves only by days, so there should be possible to calculate leaves by number of hours or to change the "number of days" field from integer to float.
There are a few cases that should improve the allocation requests:
* Each employee should have assigned to the contract a field about number of leaves negotiated, if different from the Legal Leave type number.
* For the first assignation the number of days should be calculated depending of the date of employment.
* Employees transfered between the same company Group should get the remaining days from previous company.
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 smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/
hr/issues/new?body=module:%20
hr_holidays_legal_leave%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
=======
Contributors
------------
* Salton Massally <smassally@idtlabs.sl>
* Fekete Mihai <feketemihai@gmail.com>
* Ivan Yelizariev <yelizariev@it-projects.info>
* Bassirou Ndaw <b.ndaw@ergobit.org>
Maintainer
----------
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
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.

View File

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# © 2015 iDT LABS (http://www.@idtlabs.sl)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# © 2015 iDT LABS (http://www.@idtlabs.sl)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'HR Holidays Legal Leave',
'version': '10.0.1.0.0',
'category': 'Human Resources',
'license': 'AGPL-3',
'summary': 'Allows the definition of legal/annual leave',
'author': 'iDT LABS, '
'Odoo Community Association (OCA)',
'website': 'http://idtlabs.sl',
'depends': ['hr_holidays'],
'data': [
'views/hr_holidays_status.xml',
],
'installable': True,
}

View File

@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# abdullah alsabi <alsabi.abdullah@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-10 04:30+0000\n"
"PO-Revision-Date: 2017-06-10 04:30+0000\n"
"Last-Translator: abdullah alsabi <alsabi.abdullah@gmail.com>, 2017\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_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "الشركات"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "الموظف"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr "نوع الإجازة"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr ""

View File

@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# 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-02-23 03:45+0000\n"
"PO-Revision-Date: 2018-02-23 03:45+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_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Společnosti"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Zaměstnanec"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr "Typ dovolené"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr "Stav zákonné dovolené"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr "Právní/roční"
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr "Typ právního/ročního volna není pro vaši společnost definován."
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
"Použít tento typ dovolené jako právní / roční pro aktuální společnost. Jeden "
"a jediný typ dovolené může mít toto zaškrtávací políčko. Nemůžete ji zrušit "
"přímo. Nastavte jej místo jiného na typ dovolené."
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr "Nelze snížit platné žádosti o přidělení."

View File

@ -0,0 +1,72 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
# Niki Waibel <niki.waibel@gmail.com>, 2017
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-28 01:44+0000\n"
"PO-Revision-Date: 2018-12-18 15: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_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Unternehmen"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Angestellte(r)"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr "Urlaubsart"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr "Gesetzlicher Urlaubsstatus"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr "Gesetzlich/Jährlich"
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr ""
"Der gesetzliche/jährliche Urlaubstyp ist für Ihr Unternehmen nicht definiert."
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
"Verwenden Sie diese Urlaubsart als gesetzlich/jährlich für die aktuelle "
"Firma. Eine, und nur eine Urlaubsart kann diese Checkbox haben. Sie können "
"es nicht direkt aufheben. Setzen Sie ihn stattdessen auf einen andere "
"Urlaubsart. "
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr "Sie können keine validierten Zuteilungsanfragen verkleinern."

View File

@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# José Antonio Cuello <jcuello@artextrading.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-29 01:35+0000\n"
"PO-Revision-Date: 2016-11-29 01:35+0000\n"
"Last-Translator: José Antonio Cuello <jcuello@artextrading.com>, 2016\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\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"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Compañías"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Empleado"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr "Tipo de ausencia"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr "Estado de la ausencia legal"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr "Legal/Anual"
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr "Tipo de ausencia Legal/anual no definida en la compañía."
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
"Usar este tipo de ausencia como Legal/Anual para la compañía seleccionada. "
"Uno y sólo un tipo de ausencia puede tener esta selección. No se puede "
"desmarcar directamente, se debe seleccionar otro tipo de ausencia su lugar."
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr "No se puede reducir las solicitudes de asignación validadas."

View File

@ -0,0 +1,65 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: hr (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-26 02:41+0000\n"
"PO-Revision-Date: 2016-05-25 09:47+0000\n"
"Last-Translator: <>\n"
"Language-Team: Finnish (http://www.transifex.com/oca/OCA-hr-8-0/language/"
"fi/)\n"
"Language: fi\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"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Yritykset"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Työntekijä"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr ""

View File

@ -0,0 +1,70 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# leemannd <denis.leemann@camptocamp.com>, 2017
# guillaume bauer <guillaume.bauer@syentys.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-17 12:55+0000\n"
"PO-Revision-Date: 2017-07-17 12:55+0000\n"
"Last-Translator: guillaume bauer <guillaume.bauer@syentys.com>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\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"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Entreprises"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Employé"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr "Type de Congé"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr "Statuts des congés légaux"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr "Légal / Annuel"
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr "Le type de congé légal / annuel n'est pas défini pour votre compagnie."
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
"Utilisez ce type de congé comme légal / annuel pour la société actuelle. Un "
"seul type de congé peut avoir cette case de coché. Vous ne pouvez pas le "
"désactiver directement. Réglez-le sur un autre type de congé."
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr "Vous ne pouvez pas réduire les demandes d'allocation validées."

View File

@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
# Bole <bole@dajmi5.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-23 03:45+0000\n"
"PO-Revision-Date: 2018-02-23 03:45+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Tvrtke"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Djelatnik"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr "Vrsta odsustva"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr "Status godišnjeg odmora"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr "Zakonski/Godišnji"
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr "Zakonski / Godišnji tip odsustva nije definiran za vašu tvrtku"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
"Koristi ovaj tip odsustva kao Zakonski / Godišnji za trenutnu tvrtku. Samo "
"jedno odsustvo može imati ovu postavku uključenu. Nije ju moguće ovdje "
"isključiti. Umjesto toga postavite ovo kao uključeno na drugom tipu."
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr "Nije moguće reducirati odobrene zahtjeve za odsustvom"

View File

@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
# Bole <bole@dajmi5.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-29 03:45+0000\n"
"PO-Revision-Date: 2016-11-29 03:45+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2016\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/"
"hr_HR/)\n"
"Language: hr_HR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Poduzeća"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Djelatnik"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr "Tip odsustva"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr ""

View File

@ -0,0 +1,58 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Use this Leave type as Legal/Annual for current company. One and only one leave type can have this checkbox. You cannot unset it directly. Set it on another Leave type instead. "
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr ""

View File

@ -0,0 +1,65 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: hr (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-26 02:41+0000\n"
"PO-Revision-Date: 2016-05-25 09:47+0000\n"
"Last-Translator: <>\n"
"Language-Team: Italian (http://www.transifex.com/oca/OCA-hr-8-0/language/"
"it/)\n"
"Language: it\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"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Aziende"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Dipendente"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr ""

View File

@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
# Viktoras Norkus <viktoras@bmx.lt>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-17 12:16+0000\n"
"PO-Revision-Date: 2018-01-17 12:16+0000\n"
"Last-Translator: Viktoras Norkus <viktoras@bmx.lt>, 2018\n"
"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n"
"Language: lt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n"
"%100<10 || n%100>=20) ? 1 : 2);\n"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Įmonės"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Darbuotojas"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr ""

View File

@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# Cas Vissers <casvissers@brahoo.nl>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-28 03:17+0000\n"
"PO-Revision-Date: 2017-03-28 03:17+0000\n"
"Last-Translator: Cas Vissers <casvissers@brahoo.nl>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
"teams/23907/nl_NL/)\n"
"Language: nl_NL\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"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Bedrijven"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Werknemer"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr ""

View File

@ -0,0 +1,65 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: hr (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-26 02:41+0000\n"
"PO-Revision-Date: 2016-05-25 09:47+0000\n"
"Last-Translator: <>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-hr-8-0/"
"language/pt_BR/)\n"
"Language: pt_BR\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"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Empresas"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Empregado"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr ""

View File

@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: hr (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-26 02:41+0000\n"
"PO-Revision-Date: 2016-05-25 09:47+0000\n"
"Last-Translator: <>\n"
"Language-Team: Romanian (http://www.transifex.com/oca/OCA-hr-8-0/language/"
"ro/)\n"
"Language: ro\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%100>19)||((n%100==0)&&(n!=0)))?"
"2:1));\n"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Companii"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Angajat"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr ""
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr ""

View File

@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_legal_leave
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-28 01:44+0000\n"
"PO-Revision-Date: 2017-11-28 01:44+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3);\n"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_res_company
msgid "Companies"
msgstr "Družbe"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_employee
msgid "Employee"
msgstr "Kader"
#. module: hr_holidays_legal_leave
#: model:ir.model,name:hr_holidays_legal_leave.model_hr_holidays_status
msgid "Leave Type"
msgstr "Tip dopusta"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_res_company_legal_holidays_status_id
msgid "Legal Leave Status"
msgstr "Stanje dopusta"
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,field_description:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid "Legal/Annual"
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:17
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:44
#, python-format
msgid "Legal/annual leave type is not defined for your company."
msgstr "Pri družbi ni določenega tipa letnega dopusta."
#. module: hr_holidays_legal_leave
#: model:ir.model.fields,help:hr_holidays_legal_leave.field_hr_holidays_status_is_annual
msgid ""
"Use this Leave type as Legal/Annual for current company. One and only one "
"leave type can have this checkbox. You cannot unset it directly. Set it on "
"another Leave type instead. "
msgstr ""
#. module: hr_holidays_legal_leave
#: code:addons/hr_holidays_legal_leave/models/hr_employee.py:36
#, python-format
msgid "You cannot reduce validated allocation requests."
msgstr "Overjenih zahtevkov po dodelitvi ne morete nižati."

View File

@ -0,0 +1,7 @@
# -*- coding: utf-8 -*-
# © 2015 iDT LABS (http://www.@idtlabs.sl)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import hr_holidays_status
from . import res_company
from . import hr_employee

View File

@ -0,0 +1,56 @@
# -*- coding: utf-8 -*-
# © 2015 iDT LABS (http://www.@idtlabs.sl)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models, api, fields, _
from odoo.exceptions import UserError
class HrEmployee(models.Model):
_inherit = 'hr.employee'
@api.multi
def _inverse_remaining_days(self):
self.ensure_one()
legal_leave = self.company_id.legal_holidays_status_id
if not legal_leave:
raise UserError(_('Legal/annual leave type is not defined for '
'your company.'))
diff = self.remaining_leaves - legal_leave.get_days(
self.id)[legal_leave.id]['remaining_leaves']
if diff > 0:
leave = self.env['hr.holidays'].create(
{
'name': 'Allocation for %s' % self.name,
'employee_id': self.id,
'holiday_status_id': legal_leave.id,
'type': 'add',
'holiday_type': 'employee',
'number_of_days_temp': diff
}
)
leave.action_approve()
if leave.double_validation:
leave.action_validate()
elif diff < 0:
raise UserError(_('You cannot reduce validated allocation '
'requests.'))
@api.multi
def _compute_remaining_days(self):
for r in self:
legal_leave = r.company_id.legal_holidays_status_id
if not legal_leave:
raise UserError(_('Legal/annual leave type is not defined for '
'your company.'))
r.remaining_leaves = legal_leave.get_days(
r.id)[legal_leave.id]['remaining_leaves']
remaining_leaves = fields.Integer(
'Remaining Legal Leaves',
compute='_compute_remaining_days',
inverse='_inverse_remaining_days',
help='Total number of legal leaves allocated to this employee. '
'Change this value to create allocation/leave request. '
'Total based on all the leave types without overriding limit.'
)

View File

@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import fields, models, api
class HolidaysType(models.Model):
_inherit = "hr.holidays.status"
is_annual = fields.Boolean(
'Legal/Annual',
compute='_compute_is_annual',
inverse='_inverse_is_annual',
help='Use this Leave type as Legal/Annual for current company. '
'One and only one leave type can have this checkbox. '
'You cannot unset it directly. '
'Set it on another Leave type instead. '
)
company_id = fields.Many2one(
comodel_name='res.company',
default=lambda self: self._get_default_company()
)
def _get_default_company(self):
return self.env.user.company_id.id
@api.depends('company_id')
def _compute_is_annual(self):
for rec in self:
rec.is_annual = rec.company_id.legal_holidays_status_id == rec
@api.multi
def _inverse_is_annual(self):
for rec in self:
if rec.is_annual and rec.company_id:
rec.company_id.legal_holidays_status_id = rec.id

View File

@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
# © 2015 iDT LABS (http://www.@idtlabs.sl)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ResCompany(models.Model):
_inherit = 'res.company'
legal_holidays_status_id = fields.Many2one(
'hr.holidays.status',
'Legal Leave Status',
)

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# © 2015 iDT LABS (http://www.@idtlabs.sl)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import test_holidays_legal_leave

View File

@ -0,0 +1,62 @@
# -*- coding: utf-8 -*-
# © 2015 iDT LABS (http://www.@idtlabs.sl)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp.tests import common
from openerp.exceptions import Warning as UserError
class TestHolidaysLegalLeave(common.TransactionCase):
def setUp(self):
super(TestHolidaysLegalLeave, self).setUp()
self.employee_model = self.env['hr.employee']
self.holiday_status_model = self.env['hr.holidays.status']
self.holiday_model = self.env['hr.holidays']
self.company = self.env.ref('base.main_company')
# Create an employees
self.employee = self.employee_model.create({
'name': 'Employee 1',
})
# create leave type
self.holiday_status = self.holiday_status_model.create(
{
'name': 'Leave',
'limit': True,
}
)
self.company.legal_holidays_status_id = self.holiday_status.id
self.holiday = self.holiday_model.create({
'name': 'Hol10',
'employee_id': self.employee.id,
'type': 'add',
'holiday_type': 'employee',
'holiday_status_id': self.holiday_status.id,
'number_of_days_temp': 10
})
self.holiday.action_approve()
def test_try_reduce_allocation(self):
# let's sattempt to reduce allocation here... it should not let us
with self.assertRaises(UserError):
self.employee.write({'remaining_leaves': 5})
def test_getting_remaining(self):
# let's attempt getting remaining leave
self.assertEqual(self.employee.remaining_leaves, 10)
def test_setting_remaining(self):
# let's attempt setting remaining leave
self.employee.write({'remaining_leaves': 20})
self.assertEqual(self.employee.remaining_leaves, 20)
def test_create_employee(self):
"""Check that we are able to create new employee
and that _inverse_remaining_days doesn't raise error"""
self.employee_model.create({
'name': 'Employee 1',
'remaining_leaves': 0,
})

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="edit_holiday_status_form" model="ir.ui.view">
<field name="name">hr.holidays.status.form</field>
<field name="model">hr.holidays.status</field>
<field name="inherit_id" ref="hr_holidays.edit_holiday_status_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='company_id']"
position="after">
<field name="is_annual"/>
</xpath>
</field>
</record>
</odoo>

View File

@ -0,0 +1,115 @@
==================
HR Holidays Public
==================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/11.0/hr_holidays_public
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-11-0/hr-11-0-hr_holidays_public
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/116/11.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
This module is a technical module to handle public holidays.
The calculation of each leave can exclude rest public holiday, depending on
the leave type configuration.
**Table of contents**
.. contents::
:local:
Configuration
=============
Go to *Leaves -> Configuration* and open a Leave Type
* Check "Exclude Public Holidays" to exclude public holidays.
Usage
=====
For adding public holidays:
#. Go to the menu *Leaves > Public Holidays > Public Holidays*.
#. Create your public holidays.
For using public holidays on leaves:
#. Go to *Leaves > Dashboard*.
#. Select dragging on the calendar the days you want to be on leave, or go
to the form view for selecting start and end dates.
#. Select the proper "Leave Type" that has "Exclude Public Holidays" checked.
#. If no leave type is yet specified, then default configuration is to exclude
public holidays.
#. The number of days will be computed excluding public holidays that match the
selected employee, including global, country and state holidays.
#. If no employee is yet selected, only global holidays will be taken into
account.
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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_holidays_public%0Aversion:%2011.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
~~~~~~~
* Michael Telahun Makonnen
* Tecnativa
* Fekete Mihai (Forest and Biomass Services Romania)
Contributors
~~~~~~~~~~~~
* Michael Telahun Makonnen <mmakonnen@gmail.com>
* Fekete Mihai <feketemihai@gmail.com>
* Nikolina Todorova <nikolina.todorova@initos.com>
* Alexis de Lattre <alexis.delattre@akretion.com>
* Salton Massally (iDT Labs) <smassally@idtlabs.sl>
* Ivan Yelizariev <yelizariev@it-projects.info>
* Bassirou Ndaw <b.ndaw@ergobit.org>
* `Tecnativa <https://www.tecnativa.com>`__:
* Pedro M. Baeza
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/11.0/hr_holidays_public>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -0,0 +1,2 @@
from . import models
from . import wizards

View File

@ -0,0 +1,25 @@
# © 2015 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'HR Holidays Public',
'version': '11.0.1.0.0',
'license': 'AGPL-3',
'category': 'Human Resources',
'author': "Michael Telahun Makonnen, "
"Tecnativa, "
"Fekete Mihai (Forest and Biomass Services Romania),"
"Odoo Community Association (OCA)",
'summary': "Manage Public Holidays",
'website': 'https://github.com/OCA/hr',
'depends': [
'hr_holidays',
],
'data': [
'security/ir.model.access.csv',
'views/hr_holidays_public_view.xml',
'views/hr_holidays_status_views.xml',
'wizards/holidays_public_next_year_wizard.xml',
],
'installable': True,
}

View File

@ -0,0 +1,289 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# abdullah alsabi <alsabi.abdullah@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-10 04:30+0000\n"
"PO-Revision-Date: 2017-06-10 04:30+0000\n"
"Last-Translator: abdullah alsabi <alsabi.abdullah@gmail.com>, 2017\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_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr "إلغاء"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "انشئ من قبل"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "وقت الانشاء"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr "إسم العرض"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "Exclude Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "اخر تعديل من قبل"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr "اخر تعديل في"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,337 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2018-12-19 13: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_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
"Standardmäßig werden die aktuellsten Feiertage\n"
" für jedes Land als Vorlage zum Erstellen\n"
" der Feiertage der nachfolgenden Jahre verwendet."
"\n"
" <br/><br/>\n"
" Normalerweise muss im Reiter 'Optional' nichts "
"weiter eingetragen, \n"
" sondern nur auf den Button 'Erstellen' geklickt "
"werden."
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr "Kalenderjahr"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr "Abbrechen"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr "Land"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr "Erstellen"
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr "Feiertage des neues Jahres erstellen"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Erstellt von"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Erstellt am"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr "Feiertage ausgehend von den bereits Existierenden erstellen"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr "Datum"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr "Datum kann sich ändern"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
"Die Feiertage sollten das gleiche Jahr wie das Kalenderjahr sein, dem sie "
"zugewiesen werden"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr "Standardeinstellungen"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr "Anzeigename"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "Exclude Public Holidays"
msgstr "Feiertage ausschließen"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr "Urlaubsdaten"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr "ID"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
"Wenn der Haken gesetzt ist, werden Feiertage in der Urlaubstageberechnung "
"übersprungen."
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr "Zuletzt geändert am"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "Zuletzt aktualisiert von"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr "Zuletzt aktualisiert am"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr "Urlaub"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr "Urlaubsart"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr "Bezeichnung"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
"Es wurde keine Vorlage für Feiertage gefunden. Bitte erstellen Sie die "
"Feiertage einmalig manuell, um diese dann als Vorlage für das nächste Jahr "
"zu verwenden."
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr "Optional"
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr "Feiertage"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr "Feiertagszeilen"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr "Verwandte Staaten"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr "Ressourcenkalender"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
"Wählen Sie die Feiertage, die als Vorlage verwenden wollen. Wenn sie keine "
"auswählen, wird die aktuellste Vorlage für jedes Land verwendet. Wenn Sie "
"mehrere Vorlagen angeben, wird nur die aktuellste für jedes Land "
"berücksichtigt. Beispiel: Wenn Sie die Vorlagen von 2012 und 2015 "
"hinzufügen, wird nur die von 2015 berücksichtigt."
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr "Vorlagen"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
"Die hier angegebenen optionalen Felder werden nur in \n"
" Ausnahmesituationen verwenden, beispielsweise:\n"
" \"2011 war ein spezielles Jahr mit einem "
"zusätzlichen Feiertag\n"
" für das 150. Jubiläum der italienischen Einheit. "
"Deswegen\n"
" sollte für das Jahr 2012 die Vorlage von 2010 "
"verwendet werden.\""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
"Verwenden Sie diesen Assistenten zum Erstellen der Feiertage\n"
" basierend auf einer bereits existierenden "
"Vorlage.<br/>\n"
" Wenn Sie mehrere Vorlagen angeben, wird nur die "
"aktuellste \n"
" für jedes Land berücksichtigt. \n"
" Beispiel: Wenn Sie die Vorlagen von 2012 und "
"2015 für dasselbe Land \n"
" hinzufügen, wird nur die von 2015 berücksichtigt."
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr "Jahr"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
"Dies ist das Jahr, für das die Feiertage erstellt werden sollen. "
"Standardmäßig werden sie für das Jahr, das der angegebenen Vorlage folgt, "
"erstellt."
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
"Sie können keinen öffentlichen Feiertag doppelt pro Datum %s und einem der "
"Länder erstellen."
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
"Sie können keinen öffentlichen Feiertag doppelt pro Datum %s erstellen."
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
"Sie können keinen öffentlichen Feiertag doppelt pro Jahr und/oder Land "
"erstellen"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""
"Sie können keine Vorlage eines Jahres verwenden, das einen Feiertag am 29. "
"Februar enthält (z.B. 2016, 2020, ...). Bitte wählen Sie als Vorlage ein "
"anderes Jahr."

View File

@ -0,0 +1,293 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# José Antonio Cuello <yopli2000@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2017-03-03 03:37+0000\n"
"Last-Translator: José Antonio Cuello <yopli2000@gmail.com>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\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"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr "Año del calendario"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr "Cancelar"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr "País"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Creado por"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Creado el"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr "Fecha"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr "La fecha puede cambiar"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
"Las fechas de las vacaciones deberían ser el mismo año que el año de "
"calendario al que están siendo asignadas."
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr "Mostrar nombre"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
#, fuzzy
msgid "Exclude Public Holidays"
msgstr "Vacaciones públicas"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr "Fechas de la vacación"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr "ID"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr "Última modificación el"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "Última actualización por"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr "Última actualización en"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr "Nombre"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr "Vacaciones públicas"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr "Líneas de vacaciones públicas"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr "Provincias relacionadas"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
"No puede crear vacaciones públicas duplicadas para la fecha %s y una de las "
"provincias."
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr "No puede crear vacaciones públicas duplicadas para la fecha %s."
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr "No puede crear vacaciones públicas duplicadas para el año y/o país."
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,287 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2017-03-03 03:37+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"Language: fi\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"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Luonut"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Luotu"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "Exclude Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr "ID"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "Viimeksi päivittänyt"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr "Viimeksi päivitetty"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr "Nimi"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,291 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# leemannd <denis.leemann@camptocamp.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2017-03-03 03:37+0000\n"
"Last-Translator: leemannd <denis.leemann@camptocamp.com>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\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"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr "Année Calendaire"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr "Annuler"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr "Pays"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Créé par"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Créé le"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr "Date"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr "La Date peux cjanger"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
"Les dates des jours fériés doivent correspondre à l'année du calendrier "
"auxquelles elles sont assignées"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr "Nom affiché"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
#, fuzzy
msgid "Exclude Public Holidays"
msgstr "Jours fériés"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr "Date des vacances"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr "ID"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr "Dernière modification le"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "Mis-à-jour par"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr "Mis-à-jour le"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr "Nom"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr "Jours fériés"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr "Linge de jours fériés"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr "Etats liés"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,293 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# Bole <bole@dajmi5.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-04 06:53+0000\n"
"PO-Revision-Date: 2017-07-04 06:53+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr "Kalendarska godina"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr "Odustani"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr "Država"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr "Kreiraj"
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr "Kreiraj državne praznike za sljedeću godinu"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Kreirao"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Kreirano"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr "Kreiraj državne praznike iz postojećih"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr "Datum"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr "Datum može varirati"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
"Datumi praznika bi trebali biti u istoj godini za koju je kreiran ovaj "
"kalendar"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr "Zadane vrijednosti"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr "Naziv"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
#, fuzzy
msgid "Exclude Public Holidays"
msgstr "Državni praznici"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr "Datumi praznika"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr "ID"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr "Zadnje modificirano"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "Zadnji ažurirao"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr "Zadnje ažurirano"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr "Naziv"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
"Nisu pronađeni predlošci državnih praznika. Molimo kreirajte prvi državni "
"praznik ručno."
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr "Opcionalno"
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr "Državni praznici"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr "Stavke državnih praznika"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr "Povezane županije"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr "Predlošci"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,293 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# Bole <bole@dajmi5.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2017-03-03 03:37+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/"
"hr_HR/)\n"
"Language: hr_HR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr "Kalendarska godina"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr "Odustani"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr "Država"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Kreirao"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Kreirano"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr "Datum"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr "Datum može varirati"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
"Datumi praznika trebaju pripadati istoj kalendarskoj godini u kojoj su "
"definirani"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr "Naziv"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
#, fuzzy
msgid "Exclude Public Holidays"
msgstr "Javni praznici"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr "Datumi praznika"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr "ID"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr "Zadnje ažurirano"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "Zadnji ažurirao"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr "Naziv"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr "Javni praznici"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr "Stavke javnih praznika"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr "Povezani statusi"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,259 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything in\n"
" optional fields and only need to click on the button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid "Dates of holidays should be the same year as the calendar year they are being assigned to"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "Exclude Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid "No Public Holidays found as template. Please create the first Public Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Select the public holidays to use as template. If not set, latest public holidays of each country will be used. Only the last templates of each country for each year will be taken into account (If you select templates from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "The below optional fields are here only to handle\n"
" special situations like \"2011 was a special year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year for which you want to create the public holidays. By default, the year following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid "You can't create duplicate public holiday per date %s and one of the country states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid "You cannot use as template the public holidays of a year that includes public holidays on 29th of February (2016, 2020...), please select a template from another year."
msgstr ""

View File

@ -0,0 +1,287 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2017-03-03 03:37+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\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"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Creato da"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Creato il"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "Exclude Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr "ID"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "Ultimo aggiornamento di"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr "Ultimo aggiornamento il"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr "Nome"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,289 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-10 04:30+0000\n"
"PO-Revision-Date: 2017-06-10 04:30+0000\n"
"Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
"teams/23907/nl_NL/)\n"
"Language: nl_NL\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"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr "Kalenderjaar"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr "Annuleer"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr "Land"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr "Aanmaken"
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Aangemaakt door"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Aangemaakt op"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr "Maakt feestdagen aan van bestaande"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr "Datum"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr "Datum kan wijzigen"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr "Standaard"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr "Weergavenaam"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
#, fuzzy
msgid "Exclude Public Holidays"
msgstr "Feestdagen"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr "ID"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr "Laatst gewijzigd op"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "Laatst bijgewerkt door"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr "Laatst bijgewerkt op"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr "Naam"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr "Optioneel"
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr "Feestdagen"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr "Feestdagen-regels"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr "Gerelateerde Fases"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr "Sjablonen"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr "Jaar"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,290 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2017-03-03 03:37+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Polish (https://www.transifex.com/oca/teams/23907/pl/)\n"
"Language: pl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n"
"%100<12 || n%100>=14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n"
"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr "Kraj"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr "Data"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr "Data może ulec zmianie"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
#, fuzzy
msgid "Exclude Public Holidays"
msgstr "Dni wolne od pracy"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr "Daty dni wolnych od pracy"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr "Nazwa"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr "Dni wolne od pracy"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr "Dni wolne od pracy - pozycje"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,288 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2017-03-03 03:37+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
"teams/23907/pt_BR/)\n"
"Language: pt_BR\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"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Criado por"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Criado em"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "Exclude Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,288 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2017-03-03 03:37+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n"
"Language: ro\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%100>19)||((n%100==0)&&(n!=0)))?"
"2:1));\n"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Creeat de către"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Creeat în"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "Exclude Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr "ID"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "Ultima actualizare de către"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr "Ultima actualizare în"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,289 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_public
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-03 03:37+0000\n"
"PO-Revision-Date: 2017-03-03 03:37+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3);\n"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"By default, the most recent public holidays\n"
" for each country are used as template to create\n"
" public holidays for the year following the "
"templates.\n"
" <br/><br/>\n"
" Normally, you should not need to input anything "
"in\n"
" optional fields and only need to click on the "
"button\n"
" \"Create\"."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_year_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_year
msgid "Calendar Year"
msgstr "Koledarsko leto"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Cancel"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_country_id
msgid "Country"
msgstr "Država"
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.action_create_next_year_public_holidays
#: model:ir.ui.menu,name:hr_holidays_public.menu_create_next_year_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Create Next Year Public Holidays"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_uid
msgid "Created by"
msgstr "Ustvaril"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_create_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_create_date
msgid "Created on"
msgstr "Ustvarjeno"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_public_holidays_next_year_wizard
msgid "Creates public holidays from existing ones"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_date
msgid "Date"
msgstr "Datum"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_variable_date
msgid "Date may change"
msgstr "Datum se lahko spremeni"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:169
#, python-format
msgid ""
"Dates of holidays should be the same year as the calendar year they are "
"being assigned to"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Defaults"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_display_name
msgid "Display Name"
msgstr "Prikazni naziv"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
#, fuzzy
msgid "Exclude Public Holidays"
msgstr "Javni prazniki"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_ids
msgid "Holiday Dates"
msgstr "Datumi praznikov"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_id
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_id
msgid "ID"
msgstr "ID"
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_hr_holidays_status_exclude_public_holidays
msgid "If enabled, public holidays are skipped in leave days calculation."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line___last_update
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard___last_update
msgid "Last Modified on"
msgstr "Zadnjič spremenjeno"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_uid
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_uid
msgid "Last Updated by"
msgstr "Zadnjič posodobil"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_write_date
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_write_date
msgid "Last Updated on"
msgstr "Zadnjič posodobljeno"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays
msgid "Leave"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_status
msgid "Leave Type"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_display_name
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_name
msgid "Name"
msgstr "Naziv"
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:40
#, python-format
msgid ""
"No Public Holidays found as template. Please create the first Public "
"Holidays manually."
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid "Optional"
msgstr ""
#. module: hr_holidays_public
#: model:ir.actions.act_window,name:hr_holidays_public.open_holidays_public_view
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public
#: model:ir.ui.menu,name:hr_holidays_public.menu_holidays_public_view
#: model:ir.ui.menu,name:hr_holidays_public.menu_hr_public_holidays
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form
#: model:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_tree
msgid "Public Holidays"
msgstr "Javni prazniki"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line
msgid "Public Holidays Lines"
msgstr "Postavke javnih praznikov"
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line_state_ids
msgid "Related States"
msgstr "Povezane zvezne države"
#. module: hr_holidays_public
#: model:ir.model,name:hr_holidays_public.model_resource_calendar
msgid "Resource Calendar"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid ""
"Select the public holidays to use as template. If not set, latest public "
"holidays of each country will be used. Only the last templates of each "
"country for each year will be taken into account (If you select templates "
"from 2012 and 2015, only the templates from 2015 will be taken into account."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_template_ids
msgid "Templates"
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"The below optional fields are here only to handle\n"
" special situations like \"2011 was a special "
"year with\n"
" an additional public holiday for the 150th\n"
" anniversary of the Italian unification, so you "
"want to\n"
" replicate the 2010 Italian holidays to 2012.\""
msgstr ""
#. module: hr_holidays_public
#: model:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view
msgid ""
"Use this wizard to create public holidays based on the\n"
" existing ones.<br/>\n"
" Only the last templates of each country\n"
" will be taken into account (If you select "
"templates\n"
" from 2012 and 2015 of the same country; '\n"
" only the templates from 2015 will be taken into\n"
" account)."
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid "Year"
msgstr ""
#. module: hr_holidays_public
#: model:ir.model.fields,help:hr_holidays_public.field_public_holidays_next_year_wizard_year
msgid ""
"Year for which you want to create the public holidays. By default, the year "
"following the template."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:184
#, python-format
msgid ""
"You can't create duplicate public holiday per date %s and one of the country "
"states."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:191
#, python-format
msgid "You can't create duplicate public holiday per date %s."
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/models/hr_holidays_public.py:53
#, python-format
msgid "You can't create duplicate public holiday per year and/or country"
msgstr ""
#. module: hr_holidays_public
#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:78
#, python-format
msgid ""
"You cannot use as template the public holidays of a year that includes "
"public holidays on 29th of February (2016, 2020...), please select a "
"template from another year."
msgstr ""

View File

@ -0,0 +1,4 @@
from . import hr_holidays
from . import hr_holidays_status
from . import hr_holidays_public
from . import resource

View File

@ -0,0 +1,28 @@
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class HrHolidays(models.Model):
_inherit = 'hr.holidays'
def _get_number_of_days(self, date_from, date_to, employee_id):
if (self.holiday_status_id.exclude_public_holidays or
not self.holiday_status_id):
obj = self.with_context(
employee_id=employee_id,
exclude_public_holidays=True,
)
else:
obj = self
return super(HrHolidays, obj)._get_number_of_days(
date_from, date_to, employee_id,
)
@api.onchange('employee_id', 'holiday_status_id')
def _onchange_data_hr_holidays_public(self):
"""Trigger the number of days computation also when you change the
employee or the leave type.
"""
self._onchange_date_to()

View File

@ -0,0 +1,193 @@
# © 2015 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from datetime import date
from odoo import api, fields, models, _
from odoo.exceptions import UserError
class HrHolidaysPublic(models.Model):
_name = 'hr.holidays.public'
_description = 'Public Holidays'
_rec_name = 'year'
_order = "year"
display_name = fields.Char(
"Name",
compute="_compute_display_name",
readonly=True,
store=True,
)
year = fields.Integer(
"Calendar Year",
required=True,
default=date.today().year
)
line_ids = fields.One2many(
'hr.holidays.public.line',
'year_id',
'Holiday Dates'
)
country_id = fields.Many2one(
'res.country',
'Country'
)
@api.multi
@api.constrains('year', 'country_id')
def _check_year(self):
for line in self:
line._check_year_one()
def _check_year_one(self):
if self.country_id:
domain = [('year', '=', self.year),
('country_id', '=', self.country_id.id),
('id', '!=', self.id)]
else:
domain = [('year', '=', self.year),
('country_id', '=', False),
('id', '!=', self.id)]
if self.search_count(domain):
raise UserError(_('You can\'t create duplicate public holiday '
'per year and/or country'))
return True
@api.multi
@api.depends('year', 'country_id')
def _compute_display_name(self):
for line in self:
if line.country_id:
line.display_name = '%s (%s)' % (line.year,
line.country_id.name)
else:
line.display_name = line.year
@api.multi
def name_get(self):
result = []
for rec in self:
result.append((rec.id, rec.display_name))
return result
@api.model
@api.returns('hr.holidays.public.line')
def get_holidays_list(self, year, employee_id=None):
"""
Returns recordset of hr.holidays.public.line
for the specified year and employee
:param year: year as string
:param employee_id: ID of the employee
:return: recordset of hr.holidays.public.line
"""
holidays_filter = [('year', '=', year)]
employee = False
if employee_id:
employee = self.env['hr.employee'].browse(employee_id)
if employee.address_id and employee.address_id.country_id:
holidays_filter.append('|')
holidays_filter.append(('country_id', '=', False))
holidays_filter.append(('country_id',
'=',
employee.address_id.country_id.id))
else:
holidays_filter.append(('country_id', '=', False))
pholidays = self.search(holidays_filter)
if not pholidays:
return list()
states_filter = [('year_id', 'in', pholidays.ids)]
if employee and employee.address_id and employee.address_id.state_id:
states_filter += ['|',
('state_ids', '=', False),
('state_ids', '=',
employee.address_id.state_id.id)]
else:
states_filter.append(('state_ids', '=', False))
hhplo = self.env['hr.holidays.public.line']
holidays_lines = hhplo.search(states_filter)
return holidays_lines
@api.model
def is_public_holiday(self, selected_date, employee_id=None):
"""
Returns True if selected_date is a public holiday for the employee
:param selected_date: datetime object or string
:param employee_id: ID of the employee
:return: bool
"""
if isinstance(selected_date, str):
selected_date = fields.Date.from_string(selected_date)
holidays_lines = self.get_holidays_list(
selected_date.year, employee_id=employee_id)
if holidays_lines:
hol_date = holidays_lines.filtered(
lambda r: r.date == fields.Date.to_string(
selected_date))
if hol_date.ids:
return True
return False
class HrHolidaysPublicLine(models.Model):
_name = 'hr.holidays.public.line'
_description = 'Public Holidays Lines'
_order = "date, name desc"
name = fields.Char(
'Name',
required=True,
)
date = fields.Date(
'Date',
required=True
)
year_id = fields.Many2one(
'hr.holidays.public',
'Calendar Year',
required=True,
)
variable_date = fields.Boolean('Date may change', oldname='variable',
default=True)
state_ids = fields.Many2many(
'res.country.state',
'hr_holiday_public_state_rel',
'line_id',
'state_id',
'Related States'
)
@api.multi
@api.constrains('date', 'state_ids')
def _check_date_state(self):
for line in self:
line._check_date_state_one()
def _check_date_state_one(self):
if fields.Date.from_string(self.date).year != self.year_id.year:
raise UserError(_(
'Dates of holidays should be the same year '
'as the calendar year they are being assigned to'
))
if self.state_ids:
domain = [('date', '=', self.date),
('year_id', '=', self.year_id.id),
('state_ids', '!=', False),
('id', '!=', self.id)]
holidays = self.search(domain)
for holiday in holidays:
if self.state_ids & holiday.state_ids:
raise UserError(_('You can\'t create duplicate public '
'holiday per date %s and one of the '
'country states.') % self.date)
domain = [('date', '=', self.date),
('year_id', '=', self.year_id.id),
('state_ids', '=', False)]
if self.search_count(domain) > 1:
raise UserError(_('You can\'t create duplicate public holiday '
'per date %s.') % self.date)
return True

View File

@ -0,0 +1,15 @@
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class HrHolidaysStatus(models.Model):
_inherit = 'hr.holidays.status'
exclude_public_holidays = fields.Boolean(
string='Exclude Public Holidays',
default=True,
help="If enabled, public holidays are skipped in leave days "
"calculation.",
)

View File

@ -0,0 +1,47 @@
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
import datetime
from dateutil import rrule
class ResourceCalendar(models.Model):
_inherit = 'resource.calendar'
def _get_holidays_public_leaves(self, start_dt, end_dt, employe_id):
"""Get the public holidays for the current employee and given dates in
the format expected by resource methods.
:param: start_dt: Initial datetime.
:param: end_dt: End datetime.
:param: employee_id: Employee ID. It can be false.
:return: List of tuples with (start_date, end_date) as elements.
"""
leaves = []
for day in rrule.rrule(rrule.YEARLY, dtstart=start_dt, until=end_dt):
lines = self.env['hr.holidays.public'].get_holidays_list(
day.year, employee_id=employe_id,
)
for line in lines:
date = fields.Datetime.from_string(line.date)
leaves.append(
(datetime.datetime.combine(date, datetime.time.min),
datetime.datetime.combine(date, datetime.time.max)),
)
return leaves
@api.multi
def _get_leave_intervals(self, resource_id=None,
start_datetime=None, end_datetime=None):
res = super(ResourceCalendar, self)._get_leave_intervals(
resource_id=resource_id,
start_datetime=start_datetime,
end_datetime=end_datetime,
)
if self.env.context.get('exclude_public_holidays'):
res += self._get_holidays_public_leaves(
start_datetime, end_datetime,
self.env.context.get('employee_id', False),
)
return res

View File

@ -0,0 +1,3 @@
Go to *Leaves -> Configuration* and open a Leave Type
* Check "Exclude Public Holidays" to exclude public holidays.

View File

@ -0,0 +1,10 @@
* Michael Telahun Makonnen <mmakonnen@gmail.com>
* Fekete Mihai <feketemihai@gmail.com>
* Nikolina Todorova <nikolina.todorova@initos.com>
* Alexis de Lattre <alexis.delattre@akretion.com>
* Salton Massally (iDT Labs) <smassally@idtlabs.sl>
* Ivan Yelizariev <yelizariev@it-projects.info>
* Bassirou Ndaw <b.ndaw@ergobit.org>
* `Tecnativa <https://www.tecnativa.com>`__:
* Pedro M. Baeza

View File

@ -0,0 +1,4 @@
This module is a technical module to handle public holidays.
The calculation of each leave can exclude rest public holiday, depending on
the leave type configuration.

View File

@ -0,0 +1,17 @@
For adding public holidays:
#. Go to the menu *Leaves > Public Holidays > Public Holidays*.
#. Create your public holidays.
For using public holidays on leaves:
#. Go to *Leaves > Dashboard*.
#. Select dragging on the calendar the days you want to be on leave, or go
to the form view for selecting start and end dates.
#. Select the proper "Leave Type" that has "Exclude Public Holidays" checked.
#. If no leave type is yet specified, then default configuration is to exclude
public holidays.
#. The number of days will be computed excluding public holidays that match the
selected employee, including global, country and state holidays.
#. If no employee is yet selected, only global holidays will be taken into
account.

View File

@ -0,0 +1,5 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_hr_holidays_public_user,access_hr_holidays_public,model_hr_holidays_public,base.group_user,1,0,0,0
access_hr_holidays_public_manager,access_hr_holidays_public,model_hr_holidays_public,hr_holidays.group_hr_holidays_manager,1,1,1,1
access_hr_holidays_public_line_user,access_hr_holidays_public_line,model_hr_holidays_public_line,base.group_user,1,0,0,0
access_hr_holidays_public_line_manager,access_hr_holidays_public_line,model_hr_holidays_public_line,hr_holidays.group_hr_holidays_manager,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_hr_holidays_public_user access_hr_holidays_public model_hr_holidays_public base.group_user 1 0 0 0
3 access_hr_holidays_public_manager access_hr_holidays_public model_hr_holidays_public hr_holidays.group_hr_holidays_manager 1 1 1 1
4 access_hr_holidays_public_line_user access_hr_holidays_public_line model_hr_holidays_public_line base.group_user 1 0 0 0
5 access_hr_holidays_public_line_manager access_hr_holidays_public_line model_hr_holidays_public_line hr_holidays.group_hr_holidays_manager 1 1 1 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,463 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
<title>HR Holidays Public</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="hr-holidays-public">
<h1 class="title">HR Holidays Public</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/hr/tree/11.0/hr_holidays_public"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/hr-11-0/hr-11-0-hr_holidays_public"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/116/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module is a technical module to handle public holidays.</p>
<p>The calculation of each leave can exclude rest public holiday, depending on
the leave type configuration.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
<li><a class="reference internal" href="#usage" id="id2">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<p>Go to <em>Leaves -&gt; Configuration</em> and open a Leave Type</p>
<ul class="simple">
<li>Check “Exclude Public Holidays” to exclude public holidays.</li>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
<p>For adding public holidays:</p>
<ol class="arabic simple">
<li>Go to the menu <em>Leaves &gt; Public Holidays &gt; Public Holidays</em>.</li>
<li>Create your public holidays.</li>
</ol>
<p>For using public holidays on leaves:</p>
<ol class="arabic simple">
<li>Go to <em>Leaves &gt; Dashboard</em>.</li>
<li>Select dragging on the calendar the days you want to be on leave, or go
to the form view for selecting start and end dates.</li>
<li>Select the proper “Leave Type” that has “Exclude Public Holidays” checked.</li>
<li>If no leave type is yet specified, then default configuration is to exclude
public holidays.</li>
<li>The number of days will be computed excluding public holidays that match the
selected employee, including global, country and state holidays.</li>
<li>If no employee is yet selected, only global holidays will be taken into
account.</li>
</ol>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/hr/issues/new?body=module:%20hr_holidays_public%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id4">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id5">Authors</a></h2>
<ul class="simple">
<li>Michael Telahun Makonnen</li>
<li>Tecnativa</li>
<li>Fekete Mihai (Forest and Biomass Services Romania)</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<ul class="simple">
<li>Michael Telahun Makonnen &lt;<a class="reference external" href="mailto:mmakonnen&#64;gmail.com">mmakonnen&#64;gmail.com</a>&gt;</li>
<li>Fekete Mihai &lt;<a class="reference external" href="mailto:feketemihai&#64;gmail.com">feketemihai&#64;gmail.com</a>&gt;</li>
<li>Nikolina Todorova &lt;<a class="reference external" href="mailto:nikolina.todorova&#64;initos.com">nikolina.todorova&#64;initos.com</a>&gt;</li>
<li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li>
<li>Salton Massally (iDT Labs) &lt;<a class="reference external" href="mailto:smassally&#64;idtlabs.sl">smassally&#64;idtlabs.sl</a>&gt;</li>
<li>Ivan Yelizariev &lt;<a class="reference external" href="mailto:yelizariev&#64;it-projects.info">yelizariev&#64;it-projects.info</a>&gt;</li>
<li>Bassirou Ndaw &lt;<a class="reference external" href="mailto:b.ndaw&#64;ergobit.org">b.ndaw&#64;ergobit.org</a>&gt;</li>
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Pedro M. Baeza</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/11.0/hr_holidays_public">OCA/hr</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,2 @@
from . import test_holidays_calculation
from . import test_holidays_public

View File

@ -0,0 +1,123 @@
# Copyright 2015 iDT LABS (http://www.@idtlabs.sl)
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests import common
class TestHolidaysComputeDaysBase(common.SavepointCase):
at_install = False
post_install = True
@classmethod
def setUpClass(cls):
super(TestHolidaysComputeDaysBase, cls).setUpClass()
cls.HrHolidays = cls.env['hr.holidays']
cls.HrHolidaysPublic = cls.env["hr.holidays.public"]
# Remove timezone for controlling data better
cls.env.user.tz = False
cls.calendar = cls.env['resource.calendar'].create({
'name': 'Calendar',
'attendance_ids': [],
})
for day in range(5): # From monday to friday
cls.calendar.attendance_ids = [
(0, 0, {
'name': 'Attendance',
'dayofweek': str(day),
'hour_from': '08',
'hour_to': '12',
}),
(0, 0, {
'name': 'Attendance',
'dayofweek': str(day),
'hour_from': '14',
'hour_to': '18',
}),
]
cls.address_1 = cls.env['res.partner'].create({
'name': 'Address 1',
'country_id': cls.env.ref('base.uk').id,
})
cls.address_2 = cls.env['res.partner'].create({
'name': 'Address 1',
'country_id': cls.env.ref('base.es').id,
'state_id': cls.env.ref('base.state_es_cr').id,
})
cls.employee_1 = cls.env['hr.employee'].create({
'name': 'Employee 1',
'resource_calendar_id': cls.calendar.id,
'address_id': cls.address_1.id,
})
cls.employee_2 = cls.env['hr.employee'].create({
'name': 'Employee 2',
'resource_calendar_id': cls.calendar.id,
'address_id': cls.address_2.id,
})
# Use a very old year for avoiding to collapse with current data
cls.public_holiday_global = cls.HrHolidaysPublic.create({
'year': 1946,
'line_ids': [
(0, 0, {
'name': 'Christmas',
'date': '1946-12-25',
}),
],
})
cls.public_holiday_country = cls.HrHolidaysPublic.create({
'year': 1946,
'country_id': cls.address_2.country_id.id,
'line_ids': [
(0, 0, {
'name': 'Before Christmas',
'date': '1946-12-24',
}),
(0, 0, {
'name': 'Even More Before Christmas',
'date': '1946-12-23',
'state_ids': [
(6, 0, cls.address_2.state_id.ids),
]
}),
],
})
cls.holiday_type = cls.env['hr.holidays.status'].create({
'name': 'Leave Type Test',
'exclude_public_holidays': True,
})
cls.holiday_type_no_excludes = cls.env['hr.holidays.status'].create({
'name': 'Leave Type Test Without excludes',
'exclude_public_holidays': False,
})
class TestHolidaysComputeDays(TestHolidaysComputeDaysBase):
def test_number_days_excluding_employee_1(self):
holidays = self.HrHolidays.new({
'date_from': '1946-12-23 00:00:00', # Monday
'date_to': '1946-12-29 23:59:59', # Sunday
'holiday_status_id': self.holiday_type.id,
'employee_id': self.employee_1.id,
})
holidays._onchange_data_hr_holidays_public()
self.assertEqual(holidays.number_of_days_temp, 4)
def _test_number_days_excluding_employee_2(self):
holidays = self.HrHolidays.new({
'date_from': '1946-12-23 00:00:00', # Monday
'date_to': '1946-12-29 23:59:59', # Sunday
'holiday_status_id': self.holiday_type.id,
'employee_id': self.employee_2.id,
})
holidays._onchange_data_hr_holidays_public()
self.assertEqual(holidays.number_of_days_temp, 2)
def test_number_days_not_excluding(self):
holidays = self.HrHolidays.new({
'date_from': '1946-12-23 00:00:00', # Monday
'date_to': '1946-12-29 23:59:59', # Sunday
'holiday_status_id': self.holiday_type_no_excludes.id,
'employee_id': self.employee_1.id,
})
holidays._onchange_data_hr_holidays_public()
self.assertEqual(holidays.number_of_days_temp, 5)

View File

@ -0,0 +1,203 @@
# © 2015 Salton Massally <smassally@idtlabs.sl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.exceptions import ValidationError
from odoo.exceptions import UserError
from odoo.tests.common import TransactionCase
class TestHolidaysPublic(TransactionCase):
at_install = False
post_install = True
def setUp(self):
super(TestHolidaysPublic, self).setUp()
self.holiday_model = self.env["hr.holidays.public"]
self.holiday_model_line = self.env["hr.holidays.public.line"]
self.employee_model = self.env['hr.employee']
self.wizard_next_year = self.env['public.holidays.next.year.wizard']
# Remove possibly existing public holidays that would interfer.
self.holiday_model_line.search([]).unlink()
self.holiday_model.search([]).unlink()
# Create holidays
holiday2 = self.holiday_model.create({
'year': 1994,
'country_id': self.env.ref('base.sl').id
})
self.holiday_model_line.create({
'name': 'holiday 5',
'date': '1994-10-14',
'year_id': holiday2.id
})
holiday3 = self.holiday_model.create({
'year': 1994,
'country_id': self.env.ref('base.sk').id
})
self.holiday_model_line.create({
'name': 'holiday 6',
'date': '1994-11-14',
'year_id': holiday3.id
})
holiday1 = self.holiday_model.create({
'year': 1995,
})
for dt in ['1995-10-14', '1995-12-31', '1995-01-01']:
self.holiday_model_line.create({
'name': 'holiday x',
'date': dt,
'year_id': holiday1.id
})
self.employee = self.employee_model.create(
{
'name': 'Employee 1',
'address_id': self.env['res.partner'].create(
{
'name': 'Employee 1',
'country_id': self.env.ref('base.sl').id
}
).id
}
)
def test_name_get(self):
hol = self.holiday_model.create({
'year': 1999,
})
hol_name = hol.name_get()[0]
self.assertEqual(hol_name, (hol.id, str(hol.year)))
def test_duplicate_year_country_fail(self):
# ensures that duplicate year cannot be created for the same country
with self.assertRaises(ValidationError):
self.holiday_model.create({
'year': 1995,
})
with self.assertRaises(ValidationError):
self.holiday_model.create({
'year': 1994,
'country_id': self.env.ref('base.sl').id
})
def test_duplicate_date_state_fail(self):
# ensures that duplicate date cannot be created for the same country
# state or with state null
holiday4 = self.holiday_model.create({
'year': 1994,
'country_id': self.env.ref('base.us').id
})
hline = self.holiday_model_line.create({
'name': 'holiday x',
'date': '1994-11-14',
'year_id': holiday4.id
})
with self.assertRaises(ValidationError):
self.holiday_model_line.create({
'name': 'holiday x',
'date': '1994-11-14',
'year_id': holiday4.id
})
hline.state_ids = [(6, 0, [self.env.ref('base.state_us_35').id])]
with self.assertRaises(ValidationError):
self.holiday_model_line.create({
'name': 'holiday x',
'date': '1994-11-14',
'year_id': holiday4.id,
'state_ids': [(6, 0, [self.env.ref('base.state_us_35').id])]
})
def test_isnot_holiday(self):
# ensures that if given a date that is not an holiday it returns none
self.assertFalse(self.holiday_model.is_public_holiday('1995-12-10'))
def test_is_holiday(self):
# ensures that correct holidays are identified
self.assertTrue(self.holiday_model.is_public_holiday('1995-10-14'))
def test_isnot_holiday_in_country(self):
# ensures that correct holidays are identified for a country
self.assertFalse(self.holiday_model.is_public_holiday(
'1994-11-14', employee_id=self.employee.id))
def test_is_holiday_in_country(self):
# ensures that correct holidays are identified for a country
self.assertTrue(self.holiday_model.is_public_holiday(
'1994-10-14', employee_id=self.employee.id))
def test_holiday_line_year(self):
# ensures that line year and holiday year are the same
holiday4 = self.holiday_model.create({
'year': 1994,
})
with self.assertRaises(ValidationError):
self.holiday_model_line.create({
'name': 'holiday x',
'date': '1995-11-14',
'year_id': holiday4.id
})
def test_list_holidays_in_list_country_specific(self):
# ensures that correct holidays are identified for a country
lines = self.holiday_model.get_holidays_list(
1994, employee_id=self.employee.id)
res = lines.filtered(lambda r: r.date == '1994-10-14')
self.assertEqual(len(res), 1)
self.assertEqual(len(lines), 1)
def test_list_holidays_in_list(self):
# ensures that correct holidays are identified for a country
lines = self.holiday_model.get_holidays_list(1995)
res = lines.filtered(lambda r: r.date == '1995-10-14')
self.assertEqual(len(res), 1)
self.assertEqual(len(lines), 3)
def test_create_next_year_public_holidays(self):
self.wizard_next_year.new().create_public_holidays()
lines = self.holiday_model.get_holidays_list(1996)
res = lines.filtered(lambda r: r.date == '1996-10-14')
self.assertEqual(len(res), 1)
self.assertEqual(len(lines), 3)
def test_create_year_2000_public_holidays(self):
ph_start_ids = self.holiday_model.search([('year', '=', 1994)])
val = {
'template_ids': ph_start_ids,
'year': 2000
}
wz_create_ph = self.wizard_next_year.new(values=val)
wz_create_ph.create_public_holidays()
lines = self.holiday_model.get_holidays_list(2000)
self.assertEqual(len(lines), 2)
res = lines.filtered(
lambda r: r.year_id.country_id.id == self.env.ref('base.sl').id)
self.assertEqual(len(res), 1)
def test_february_29th(self):
# Ensures that users get a UserError (not a nasty Exception) when
# trying to create public holidays from year including 29th of
# February
holiday_tw_2016 = self.holiday_model.create({
'year': 2016,
'country_id': self.env.ref('base.tw').id
})
self.holiday_model_line.create({
'name': 'Peace Memorial Holiday',
'date': '2016-02-29',
'year_id': holiday_tw_2016.id,
})
val = {
'template_ids': holiday_tw_2016
}
wz_create_ph = self.wizard_next_year.new(values=val)
with self.assertRaises(UserError):
wz_create_ph.create_public_holidays()

View File

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_holidays_public_tree" model="ir.ui.view">
<field name="name">hr.holidays.public.tree</field>
<field name="model">hr.holidays.public</field>
<field name="arch" type="xml">
<tree string="Public Holidays">
<field name="display_name"/>
<field name="country_id"/>
</tree>
</field>
</record>
<record id="view_holidays_public_form" model="ir.ui.view">
<field name="name">hr.holidays.public.form</field>
<field name="model">hr.holidays.public</field>
<field name="arch" type="xml">
<form string="Public Holidays">
<group name="group_main">
<group name="group_main_left">
<field name="year"/>
<field name="country_id"/>
</group>
<group name="group_main_right">
<!-- Left empty for extensions -->
</group>
</group>
<group string="Public Holidays" name="group_detail">
<field name="line_ids" nolabel="1">
<tree string="Public Holidays"
editable="top">
<field name="date" attrs="{'readonly':[['variable_date', '=', False]]}" />
<field name="name" />
<field name="state_ids" widget="many2many_tags"
domain="[('country_id','=',parent.country_id)]" />
<field name="variable_date"/>
</tree>
</field>
</group>
</form>
</field>
</record>
<record id="open_holidays_public_view" model="ir.actions.act_window">
<field name="name">Public Holidays</field>
<field name="res_model">hr.holidays.public</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_hr_public_holidays"
name="Public Holidays"
parent="hr_holidays.menu_hr_holidays_root"
sequence="20"/>
<menuitem action="open_holidays_public_view"
id="menu_holidays_public_view"
parent="menu_hr_public_holidays"
sequence="10"/>
</odoo>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="edit_holiday_status_form" model="ir.ui.view">
<field name="name">hr.holidays.status.form - Add compute fields</field>
<field name="model">hr.holidays.status</field>
<field name="inherit_id" ref="hr_holidays.edit_holiday_status_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='limit']" position="after">
<field name="exclude_public_holidays"/>
</xpath>
</field>
</record>
</odoo>

View File

@ -0,0 +1 @@
from . import holidays_public_next_year_wizard

View File

@ -0,0 +1,103 @@
# Copyright 2016 Trobz
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
from odoo import api, models, fields, _
from odoo.exceptions import UserError
_logger = logging.getLogger(__name__)
class HolidaysPublicNextYearWizard(models.TransientModel):
_name = 'public.holidays.next.year.wizard'
_description = 'Creates public holidays from existing ones'
template_ids = fields.Many2many(
comodel_name='hr.holidays.public',
string='Templates',
help='Select the public holidays to use as template. '
'If not set, latest public holidays of each country will be used. '
'Only the last templates of each country for each year will '
'be taken into account (If you select templates from 2012 and 2015, '
'only the templates from 2015 will be taken into account.',)
year = fields.Integer(
help='Year for which you want to create the public holidays. '
'By default, the year following the template.',
)
@api.multi
def create_public_holidays(self):
self.ensure_one()
last_ph_dict = {}
ph_env = self.env['hr.holidays.public']
pholidays = self.template_ids or ph_env.search([])
if not pholidays:
raise UserError(_(
'No Public Holidays found as template. '
'Please create the first Public Holidays manually.'))
for ph in pholidays:
last_ph_country = last_ph_dict.get(ph.country_id, False)
if last_ph_country:
if last_ph_country.year < ph.year:
last_ph_dict[ph.country_id] = ph
else:
last_ph_dict[ph.country_id] = ph
new_ph_ids = []
for last_ph in last_ph_dict.values():
new_year = self.year or last_ph.year + 1
new_ph_vals = {
'year': new_year,
}
new_ph = last_ph.copy(new_ph_vals)
new_ph_ids.append(new_ph.id)
for last_ph_line in last_ph.line_ids:
ph_line_date = fields.Date.from_string(last_ph_line.date)
feb_29 = (
ph_line_date.month == 2 and
ph_line_date.day == 29)
if feb_29:
# Handling this rare case would mean quite a lot of
# complexity because previous or next day might also be a
# public holiday.
raise UserError(_(
'You cannot use as template the public holidays '
'of a year that '
'includes public holidays on 29th of February '
'(2016, 2020...), please select a template from '
'another year.'))
new_date = ph_line_date.replace(year=new_year)
new_ph_line_vals = {
'date': new_date,
'year_id': new_ph.id,
}
last_ph_line.copy(new_ph_line_vals)
domain = [['id', 'in', new_ph_ids]]
action = {
'type': 'ir.actions.act_window',
'name': 'New public holidays',
'view_mode': 'tree,form',
'res_model': 'hr.holidays.public',
'domain': domain
}
return action

View File

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 Trobz
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="holidays_public_next_year_wizard_view" model="ir.ui.view">
<field name="name">Create Next Year Public Holidays</field>
<field name="model">public.holidays.next.year.wizard</field>
<field name="arch" type="xml">
<form string="Create Next Year Public Holidays">
<sheet>
<div>
Use this wizard to create public holidays based on the
existing ones.<br/>
Only the last templates of each country
will be taken into account (If you select templates
from 2012 and 2015 of the same country; '
only the templates from 2015 will be taken into
account).
</div>
<notebook>
<page name="defaults" string="Defaults">
<div>
By default, the most recent public holidays
for each country are used as template to create
public holidays for the year following the templates.
<br/><br/>
Normally, you should not need to input anything in
optional fields and only need to click on the button
"Create".
</div>
</page>
<page name="optional" string="Optional">
<div>
The below optional fields are here only to handle
special situations like "2011 was a special year with
an additional public holiday for the 150th
anniversary of the Italian unification, so you want to
replicate the 2010 Italian holidays to 2012."
</div>
<group>
<field name="template_ids" />
<field name="year" />
</group>
</page>
</notebook>
</sheet>
<footer>
<button name="create_public_holidays" string="Create" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-default" special="cancel" />
</footer>
</form>
</field>
</record>
<record id="action_create_next_year_public_holidays" model="ir.actions.act_window">
<field name="name">Create Next Year Public Holidays</field>
<field name="res_model">public.holidays.next.year.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem action="action_create_next_year_public_holidays"
id="menu_create_next_year_public_holidays"
parent="menu_hr_public_holidays"
groups="hr_holidays.group_hr_holidays_manager"
sequence="30"/>
</odoo>