diff --git a/hr_holidays_public/README.rst b/hr_holidays_public/README.rst new file mode 100644 index 00000000..b3d3549c --- /dev/null +++ b/hr_holidays_public/README.rst @@ -0,0 +1,181 @@ +================== +HR Holidays Public +================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:9e48583a15773c28f7337bac2983bbe2febc5b6775d3f410139232f20056ec56 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr--holidays-lightgray.png?logo=github + :target: https://github.com/OCA/hr-holidays/tree/18.0/hr_holidays_public + :alt: OCA/hr-holidays +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/hr-holidays-18-0/hr-holidays-18-0-hr_holidays_public + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/hr-holidays&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module handles public holidays. + +The calculation of each leave can exclude rest public holiday, depending +on the leave type configuration. + +In HR holiday app, public holiday will be displayed as unusual days +(grey like weekends). + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +Go to *Time Off -> Configuration -> Time Off Types* and open a Leave +Type + +- Check "Exclude Public Holidays" to exclude public holidays. + +Usage +===== + +For adding public holidays: + +1. Go to the menu *Leaves > Public Holidays > Public Holidays*. +2. Create your public holidays. + +For using public holidays on leaves: + +1. Go to *Time Off > Dashboard*. +2. 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. +3. Select the proper "Leave Type" that has "Exclude Public Holidays" + checked. +4. If no leave type is yet specified, then default configuration is to + exclude public holidays. +5. The number of days will be computed excluding public holidays that + match the selected employee, including global, country and state + holidays. +6. If no employee is yet selected, only global holidays will be taken + into account. + +In calendar views in HR holiday app public will be display (likes other +unusual days) according the current user employee country/state. If not +set the there is a fallback to the current company country/state to +filter public holidays. + +Known issues / Roadmap +====================== + +In Odoo 12.0, \_leave_intervals() returns Intervals which is a list of +tuples (start_timestamp, end_timestamp, resource.calendar.leaves +record). Since this module does not operate with +resource.calendar.leaves, it's setting third component of a tuple to a +hr.holidays.public.line record. This may or may not be a problem, yet +since this component is also being set to resource.calendar.attendance +records in \_attendance_intervals(), seems it should be ok. + +There are no restrictions to block users from modifying or removing +calendar events linked to public holidays. There's a suggestion to +overload write and unlink methods of calendar.event, but it might have +other impacts like users not being able to edit event tags, or even +custom fields. + +Regional public holidays are shown in the public calendar. The regions +will be noted in the description of the event, but it'll be shown to all +users. It'd be good to have it show only for users in these regions. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +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) +* Druidoo +* + +Contributors +------------ + +- Michael Telahun Makonnen +- Fekete Mihai +- Nikolina Todorova +- Alexis de Lattre +- Salton Massally (iDT Labs) +- Ivan Yelizariev +- Bassirou Ndaw +- Dhara Solanki +- `Tecnativa `__: + + - Pedro M. Baeza + +- `CorporateHub `__ + + - Alexey Pelykh + +- `Camptocamp `__: + + - Damien Crier + +- `Druidoo `__: + + - Iván Todorovich + +- `Pesol `__: + + - Pedro Evaristo Gonzalez Sanchez + +- `Trobz `__: + + - Thao Le + - Do Anh Duy + +Other credits +------------- + +The migration of this module from 16.0 to 17.0 was financially supported +by Camptocamp. The migration of this module from 17.0 to 18.0 was +financially supported by Camptocamp. + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/hr-holidays `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_holidays_public/__init__.py b/hr_holidays_public/__init__.py new file mode 100644 index 00000000..adc6207f --- /dev/null +++ b/hr_holidays_public/__init__.py @@ -0,0 +1,4 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import models +from . import wizards diff --git a/hr_holidays_public/__manifest__.py b/hr_holidays_public/__manifest__.py new file mode 100644 index 00000000..140925bf --- /dev/null +++ b/hr_holidays_public/__manifest__.py @@ -0,0 +1,26 @@ +# Copyright 2015 2011,2013 Michael Telahun Makonnen +# Copyright 2020 InitOS Gmbh +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "HR Holidays Public", + "version": "18.0.1.0.0", + "license": "AGPL-3", + "category": "Human Resources", + "author": "Michael Telahun Makonnen, " + "Tecnativa, " + "Fekete Mihai (Forest and Biomass Services Romania), " + "Druidoo, " + "Odoo Community Association (OCA),", + "summary": "Manage Public Holidays", + "website": "https://github.com/OCA/hr-holidays", + "depends": ["hr_holidays"], + "data": [ + "data/data.xml", + "security/ir.model.access.csv", + "views/hr_holidays_public_view.xml", + "views/hr_leave_type.xml", + "wizards/holidays_public_next_year_wizard.xml", + ], + "installable": True, +} diff --git a/hr_holidays_public/data/data.xml b/hr_holidays_public/data/data.xml new file mode 100644 index 00000000..bf7ab92d --- /dev/null +++ b/hr_holidays_public/data/data.xml @@ -0,0 +1,6 @@ + + + + Holidays + + diff --git a/hr_holidays_public/i18n/ar.po b/hr_holidays_public/i18n/ar.po new file mode 100644 index 00000000..938cf2ee --- /dev/null +++ b/hr_holidays_public/i18n/ar.po @@ -0,0 +1,293 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 2016 +# abdullah alsabi , 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 , 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_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms: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_leave_type__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_leave_type__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__write_uid +#: 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_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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "اخر تعديل في" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" diff --git a/hr_holidays_public/i18n/ca.po b/hr_holidays_public/i18n/ca.po new file mode 100644 index 00000000..40c6b5b9 --- /dev/null +++ b/hr_holidays_public/i18n/ca.po @@ -0,0 +1,287 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: hr_holidays_public +#: model_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms: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_leave_type__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_leave_type__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__write_uid +#: 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_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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" diff --git a/hr_holidays_public/i18n/de.po b/hr_holidays_public/i18n/de.po new file mode 100644 index 00000000..1b46a5d9 --- /dev/null +++ b/hr_holidays_public/i18n/de.po @@ -0,0 +1,349 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 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: 2019-07-09 13:43+0000\n" +"Last-Translator: Maria Sparenberg \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.7.1\n" + +#. module: hr_holidays_public +#: model_terms: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" +"

\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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "Kalenderjahr" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Defaults" +msgstr "Standards" + +#. 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_leave_type__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_leave_type__exclude_public_holidays +msgid "If enabled, public holidays are skipped in leave days calculation." +msgstr "" +"Wenn der Haken gesetzt ist, werden die Feiertage bei der Berechnung der " +"Urlaubstage übersprungen." + +#. module: hr_holidays_public +#: 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_hr_holidays_public_line__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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "Zuletzt aktualisiert am" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 "Bezeichnung" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" +"Es wurde keine Feiertage als Vorlage gefunden. Dies muss daher einmalig " +"manuell erfolgen." + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +msgstr "Arbeitszeit der Ressource" + +#. 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 ein Jahr als Vorlage für die Erstellung der Feiertage. Wenn es " +"nicht gesetzt ist, wird für jedes Land die jeweils aktuellste Vorlage " +"verwendet. Wenn mehrere ausgewählt werden, wird nur die aktuellste Vorlage " +"verwendet. (Wenn beispielsweise die Vorlage von 2012 und von 2015 angeklickt " +"wird, dann wird nur die von 2015 verwendet)." + +#. 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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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.
\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 würden sie für das nachfolgende Jahr der Vorlage erstellt " +"werden." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" +"Als Vorlage für die Erstellung von Feiertagen darf kein Schaltjahr (2016, " +"2020, ...) verwendet werden. Es sollte die Vorlage eines anderes Jahres " +"verwendet werden." + +#~ msgid "Last Modified on" +#~ msgstr "Zuletzt geändert am" + +#~ msgid "Leave" +#~ msgstr "Urlaub" + +#~ msgid "Leave Type" +#~ msgstr "Urlaubstyp" diff --git a/hr_holidays_public/i18n/es.po b/hr_holidays_public/i18n/es.po new file mode 100644 index 00000000..8338bc1a --- /dev/null +++ b/hr_holidays_public/i18n/es.po @@ -0,0 +1,333 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 2016 +# José Antonio Cuello , 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: 2022-02-02 14:33+0000\n" +"Last-Translator: Olga Marco Puértolas \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" +"X-Generator: Weblate 4.3.2\n" + +#. module: hr_holidays_public +#: model_terms: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" +"

\n" +" Normally, you should not need to input anything " +"in\n" +" optional fields and only need to click on the " +"button\n" +" \"Create\"." +msgstr "" +"Por defect los festivos más recientes de cada país se usan como plantilla " +"para crear el calendario del año siguiente.\n" +"

\n" +"Normalmente no hará falta que se introduzca nada, solo es necesario clica en " +"'Crear'." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "Año del calendario" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Create" +msgstr "Crear" + +#. 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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Create Next Year Public Holidays" +msgstr "Crear Próximo Calendario de Festivos" + +#. 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 "Crea el calendario de festivos a partir de uno ya existente" + +#. 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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Defaults" +msgstr "Por defecto" + +#. 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_leave_type__exclude_public_holidays +msgid "Exclude Public Holidays" +msgstr "Excluir Festivos" + +#. 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_leave_type__exclude_public_holidays +msgid "If enabled, public holidays are skipped in leave days calculation." +msgstr "" +"Si se marca, los festivos no se tienen en cuenta en el cálculo de días de " +"ausencia." + +#. module: hr_holidays_public +#: 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_hr_holidays_public_line__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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "Última actualización en" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +msgstr "Reunión" + +#. 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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" +"No se ha encontrado plantilla de Festivos. Por favor, cree el primer " +"calendario de Festivos manualmente." + +#. module: hr_holidays_public +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Optional" +msgstr "Opcional" + +#. 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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +msgid "Public Holidays" +msgstr "Festivos" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line +msgid "Public Holidays Lines" +msgstr "Líneas de Festivos" + +#. 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 Working Time" +msgstr "Horario de Trabajo" + +#. 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 "" +"Seleccione el calendario de festivos a usar como plantilla. Si no se " +"selecciona, el calendario más reciente se usará para cada país. Sólo la " +"plantilla más reciente se utilizará para cada país (si selecciona una " +"plantilla de 2012 y otra de 2015, solo se tendrá en cuenta la del 2015)." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard__template_ids +msgid "Templates" +msgstr "Plantillas" + +#. module: hr_holidays_public +#: model_terms: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 "" +"Los siguientes campos opcionales se usan para lidiar con casos especiales, " +"por ejemplo en 2011 hubo un festivo extra en Italia por la celebración del " +"150 aniversario de la unificación, así que lo que se quiere es replicar de " +"2010 a 2012" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "Tiempo libre" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "Tipo de tiempo libre" + +#. module: hr_holidays_public +#: model_terms: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.
\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 "" +"Use este wizard para crear el calendario de Festivos a partir\n" +" de ya existentes.
\n" +" Sólo la plantilla más reciente se utilizará\n" +" para cada país (si selecciona una plantilla de " +"2012\n" +" y otra de 2015, solo se tendrá en cuenta la del " +"2015)." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard__year +msgid "Year" +msgstr "Año" + +#. 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 "" +"Año para el que quieres crear el calendario de festivos. Por defecto se usa " +"el año siguiente al de la plantilla." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" +"No puede crear festivos duplicados para la fecha %s y una de las provincias." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "No puede festivos duplicados para la fecha %s." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "No puede crear festivos duplicados para el año y/o país" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" +"No se puede utilizar como plantilla un calendario que incluye un festivo el " +"29 de Febrero, por favor seleccione una plantilla de otro año." + +#~ msgid "Last Modified on" +#~ msgstr "Última modificación el" + +#~ msgid "Leave" +#~ msgstr "Ausencia" + +#~ msgid "Leave Type" +#~ msgstr "Tipo de Ausencia" diff --git a/hr_holidays_public/i18n/fi.po b/hr_holidays_public/i18n/fi.po new file mode 100644 index 00000000..d0ecf15f --- /dev/null +++ b/hr_holidays_public/i18n/fi.po @@ -0,0 +1,291 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 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 , 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_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms: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_leave_type__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_leave_type__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__write_uid +#: 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_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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "Viimeksi päivitetty" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" diff --git a/hr_holidays_public/i18n/fr.po b/hr_holidays_public/i18n/fr.po new file mode 100644 index 00000000..1018eef4 --- /dev/null +++ b/hr_holidays_public/i18n/fr.po @@ -0,0 +1,346 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 2016 +# leemannd , 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: 2021-05-14 17:47+0000\n" +"Last-Translator: Yves Le Doeuff \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" +"X-Generator: Weblate 4.3.2\n" + +#. module: hr_holidays_public +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +#, fuzzy +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" +"

\n" +" Normally, you should not need to input anything " +"in\n" +" optional fields and only need to click on the " +"button\n" +" \"Create\"." +msgstr "" +"Par défaut, les derniers jours fériés\n" +"                             pour chaque pays sont utilisés comme modèle " +"pour créer\n" +"                             des jours fériés pour l'année suivante.\n" +"                            

\n" +"                             Normalement, vous n'avez besoin de rien saisir " +"dans\n" +"                             champs facultatifs et il suffit de cliquer sur " +"le bouton\n" +"                             \"Créer\"." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "Année Calendaire" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Create" +msgstr "Créer" + +#. 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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Create Next Year Public Holidays" +msgstr "Créer les jours fériés de l'année prochaine" + +#. 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 "Crée des jours fériés à partir de ceux existants" + +#. 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 peut changer" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Defaults" +msgstr "Défauts" + +#. 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_leave_type__exclude_public_holidays +msgid "Exclude Public Holidays" +msgstr "Exclure les 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_leave_type__exclude_public_holidays +msgid "If enabled, public holidays are skipped in leave days calculation." +msgstr "" +"Si activé, les jours fériés sont ignorés dans le calcul des jours de congé." + +#. module: hr_holidays_public +#: 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_hr_holidays_public_line__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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "Mis-à-jour le" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +msgstr "Réunion" + +#. 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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" +"Aucun jour férié trouvé comme modèle. Veuillez créer manuellement les " +"premiers jours fériés." + +#. module: hr_holidays_public +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Optional" +msgstr "Optionnel" + +#. 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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +msgstr "Horaire de travail de la ressource" + +#. 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 "" +"Sélectionnez les jours fériés à utiliser comme modèle. Si non défini, les " +"derniers jours fériés de chaque pays seront utilisés. Seuls les derniers " +"modèles de chaque pays pour chaque année seront pris en compte (Si vous " +"sélectionnez des modèles de 2012 et 2015, seuls les modèles de 2015 seront " +"pris en compte)." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard__template_ids +msgid "Templates" +msgstr "Modèles" + +#. module: hr_holidays_public +#: model_terms: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 "" +"Les champs facultatifs ci-dessous sont uniquement destinés à\n" +"                             des situations spéciales comme \"2011 était une " +"année spéciale avec\n" +"                             un jour férié supplémentaire pour le 150\n" +"                             anniversaire de l'unification italienne, vous " +"voulez donc\n" +"                             reproduire les vacances italiennes de 2010 à " +"2012. \"" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "Temps libre" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "Type de temps libre" + +#. module: hr_holidays_public +#: model_terms: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.
\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 "" +"Utilisez cet assistant pour créer des jours fériés basés sur\n" +"                             ceux existants.
\n" +"                             Seuls les derniers modèles de chaque pays\n" +"                             seront pris en compte (si vous sélectionnez des " +"modèles\n" +"                             à partir de 2012 et 2015 du même pays; '\n" +"                             seuls les modèles de 2015 seront pris en " +"compte)." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard__year +msgid "Year" +msgstr "Année" + +#. 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 "" +"Année pour laquelle vous voulez créer les jours fériés. Par défaut, l'année " +"suivant le modèle." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" +"Vous ne pouvez pas créer un double jour férié par date %s et dans l’un des " +"états du pays." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "Vous ne pouvez dupliquer ce jour férié par date %s." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "Vous ne pouvez pas créer de double jour férié par an et/ou par pays" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" +"Vous ne pouvez pas utiliser comme modèle les jours fériés d'une année qui " +"inclut les jours fériés du 29 février (2016, 2020 ...), veuillez " +"sélectionner un modèle d'une autre année." + +#~ msgid "Last Modified on" +#~ msgstr "Dernière modification le" + +#~ msgid "Leave" +#~ msgstr "Congé" + +#~ msgid "Leave Type" +#~ msgstr "Type de congé" diff --git a/hr_holidays_public/i18n/fr_FR.po b/hr_holidays_public/i18n/fr_FR.po new file mode 100644 index 00000000..9c54d2d4 --- /dev/null +++ b/hr_holidays_public/i18n/fr_FR.po @@ -0,0 +1,335 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-04-11 16:46+0000\n" +"Last-Translator: Yves Le Doeuff \n" +"Language-Team: none\n" +"Language: fr_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" +"X-Generator: Weblate 4.3.2\n" + +#. module: hr_holidays_public +#: model_terms: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" +"

\n" +" Normally, you should not need to input anything " +"in\n" +" optional fields and only need to click on the " +"button\n" +" \"Create\"." +msgstr "" +"Par défaut, les derniers jours fériés\n" +"                             pour chaque pays sont utilisés comme modèle " +"pour créer\n" +"                             des jours fériés pour l'année suivante.\n" +"                            

\n" +"                             Normalement, vous n'avez besoin de rien saisir " +"dans\n" +"                             champs facultatifs et il suffit de cliquer sur " +"le bouton\n" +"                             \"Créer\"." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "Année Calendaire" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Create" +msgstr "Créer" + +#. 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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Create Next Year Public Holidays" +msgstr "Créer les jours fériés de l'année prochaine" + +#. 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 "Crée des jours fériés à partir de ceux existants" + +#. 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 peut changer" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Defaults" +msgstr "Défauts" + +#. 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_leave_type__exclude_public_holidays +msgid "Exclude Public Holidays" +msgstr "Exclure les 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_leave_type__exclude_public_holidays +msgid "If enabled, public holidays are skipped in leave days calculation." +msgstr "" +"Si activé, les jours fériés sont ignorés dans le calcul des jours de congé." + +#. module: hr_holidays_public +#: 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_hr_holidays_public_line__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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "Mis-à-jour le" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" +"Aucun jour férié trouvé comme modèle. Veuillez créer manuellement les " +"premiers jours fériés." + +#. module: hr_holidays_public +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Optional" +msgstr "Optionnel" + +#. 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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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 "" +"Sélectionnez les jours fériés à utiliser comme modèle. Si non défini, les " +"derniers jours fériés de chaque pays seront utilisés. Seuls les derniers " +"modèles de chaque pays pour chaque année seront pris en compte (Si vous " +"sélectionnez des modèles de 2012 et 2015, seuls les modèles de 2015 seront " +"pris en compte)." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard__template_ids +msgid "Templates" +msgstr "Modèles" + +#. module: hr_holidays_public +#: model_terms: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 "" +"Les champs facultatifs ci-dessous sont uniquement destinés à\n" +"                             des situations spéciales comme \"2011 était une " +"année spéciale avec\n" +"                             un jour férié supplémentaire pour le 150\n" +"                             anniversaire de l'unification italienne, vous " +"voulez donc\n" +"                             reproduire les vacances italiennes de 2010 à " +"2012. \"" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 "" +"Utilisez cet assistant pour créer des jours fériés basés sur\n" +"                             ceux existants.
\n" +"                             Seuls les derniers modèles de chaque pays\n" +"                             seront pris en compte (si vous sélectionnez des " +"modèles\n" +"                             à partir de 2012 et 2015 du même pays; '\n" +"                             seuls les modèles de 2015 seront pris en " +"compte)." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard__year +msgid "Year" +msgstr "Année" + +#. 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 "" +"Année pour laquelle vous voulez créer les jours fériés. Par défaut, l'année " +"suivant le modèle." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" +"Vous ne pouvez pas créer un double jour férié par date %s et dans l’un des " +"états du pays." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "Vous ne pouvez dupliquer ce jour férié par date %s." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "Vous ne pouvez pas créer de double jour férié par an et/ou par pays" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" +"Vous ne pouvez pas utiliser comme modèle les jours fériés d'une année qui " +"inclut les jours fériés du 29 février (2016, 2020 ...), veuillez " +"sélectionner un modèle d'une autre année." + +#~ msgid "Last Modified on" +#~ msgstr "Dernière modification le" diff --git a/hr_holidays_public/i18n/hr.po b/hr_holidays_public/i18n/hr.po new file mode 100644 index 00000000..84464b62 --- /dev/null +++ b/hr_holidays_public/i18n/hr.po @@ -0,0 +1,300 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# Bole , 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 , 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_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "Kalendarska godina" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms: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_leave_type__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_leave_type__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__write_uid +#: 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_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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "Zadnje ažurirano" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" + +#~ msgid "Last Modified on" +#~ msgstr "Zadnje modificirano" diff --git a/hr_holidays_public/i18n/hr_HR.po b/hr_holidays_public/i18n/hr_HR.po new file mode 100644 index 00000000..be9683b2 --- /dev/null +++ b/hr_holidays_public/i18n/hr_HR.po @@ -0,0 +1,300 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 2016 +# Bole , 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 , 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_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "Kalendarska godina" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms: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_leave_type__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_leave_type__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__write_uid +#: 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_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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" + +#~ msgid "Last Modified on" +#~ msgstr "Zadnje ažurirano" diff --git a/hr_holidays_public/i18n/hr_holidays_public.pot b/hr_holidays_public/i18n/hr_holidays_public.pot new file mode 100644 index 00000000..7e17a857 --- /dev/null +++ b/hr_holidays_public/i18n/hr_holidays_public.pot @@ -0,0 +1,280 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.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_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms: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_leave_type__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_leave_type__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__write_uid +#: 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_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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country" +" states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" diff --git a/hr_holidays_public/i18n/it.po b/hr_holidays_public/i18n/it.po new file mode 100644 index 00000000..05c9d238 --- /dev/null +++ b/hr_holidays_public/i18n/it.po @@ -0,0 +1,339 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 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: 2024-02-12 11:39+0000\n" +"Last-Translator: mymage \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" +"X-Generator: Weblate 4.17\n" + +#. module: hr_holidays_public +#: model_terms: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" +"

\n" +" Normally, you should not need to input anything " +"in\n" +" optional fields and only need to click on the " +"button\n" +" \"Create\"." +msgstr "" +"Per impostazione predefinita, i giorni festivi più recenti\n" +" per ogni paese sono usati come template per " +"creare\n" +" le festività per l'anno seguendo i template.\n" +"

\n" +" Normalmente, non dovrebbe essere necessario " +"inserire nulla\n" +" nei campi facoltativi ed è necessario cliccare " +"solamente sul bottone\n" +" \"Crea\"." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "Anno del calendario" + +#. module: hr_holidays_public +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Cancel" +msgstr "Annulla" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public__country_id +msgid "Country" +msgstr "Nazione" + +#. module: hr_holidays_public +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Create" +msgstr "Crea" + +#. 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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Create Next Year Public Holidays" +msgstr "Crea i giorni festivi del prossimo anno" + +#. 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 "Crea giorni festivi da quelli esistenti" + +#. 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 variabile" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"Dates of holidays should be the same year as the calendar year they are " +"being assigned to" +msgstr "" +"Le date delle vacanze dovrebbero coincidere con l'anno solare a cui sono " +"state assegnate" + +#. module: hr_holidays_public +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Defaults" +msgstr "Predefiniti" + +#. 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 "Nome visualizzato" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_leave_type__exclude_public_holidays +msgid "Exclude Public Holidays" +msgstr "Escludi i giorni festivi" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public__line_ids +msgid "Holiday Dates" +msgstr "Date dei festivi" + +#. 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_leave_type__exclude_public_holidays +msgid "If enabled, public holidays are skipped in leave days calculation." +msgstr "" +"Se abilitato, i giorni festivi vengono saltati nel calcolo dei giorni di " +"ferie." + +#. module: hr_holidays_public +#: 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_hr_holidays_public_line__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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +msgstr "Riunione" + +#. 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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" +"Nessun giorno festivo trovato come template. Si prega di creare i primi " +"giorni festivi manualmente." + +#. module: hr_holidays_public +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Optional" +msgstr "Opzionale" + +#. 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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +msgid "Public Holidays" +msgstr "Giorni festivi" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_holidays_public_line +msgid "Public Holidays Lines" +msgstr "Lista giorni festivi" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__state_ids +msgid "Related States" +msgstr "Province correlate" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_resource_calendar +msgid "Resource Working Time" +msgstr "Orario lavoro risorsa" + +#. 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 "" +"Seleziona i giorni festivi da utilizzare come template. In caso contrario, " +"verranno utilizzati gli ultimi giorni festivi di ciascun paese. Verranno " +"presi in considerazione solo gli ultimi template di ciascun paese per ogni " +"anno (se si selezionano template del 2012 e del 2015, verranno presi in " +"considerazione solo i template del 2015." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard__template_ids +msgid "Templates" +msgstr "Modelli" + +#. module: hr_holidays_public +#: model_terms: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 "" +"I campi facoltativi seguenti sono qui solo per gestire\n" +" situazioni particolari come \"Il 2011 è stato " +"un anno speciale con\n" +" un giorno festivo aggiuntivo per il 150°\n" +" anniversario dell'Unità d'Italia, quindi vuoi\n" +" replicare le festività italiane dal 2010 al " +"2012.\"" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "Ferie" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "Tipo di ferie" + +#. module: hr_holidays_public +#: model_terms: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.
\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 "" +"Utilizzare questo wizard per creare giorni festivi basati su\n" +" quelli esistenti.
\n" +" Solo gli ultimi template di ogni paese\n" +" verranno presi in considerazione (se si " +"selezionano i template\n" +" dal 2012 al 2015 dello stesso Paese; '\n" +" verranno presi in considerazione solo i " +"template del 2015\n" +" )." + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_public_holidays_next_year_wizard__year +msgid "Year" +msgstr "Anno" + +#. 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 "" +"Anno per il quale si desidera creare i giorni festivi. Per impostazione " +"predefinita, l'anno successivo al template." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" +"Non puoi creare un giorno festivo duplicato per la data %s e una delle " +"province della nazione." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "Non puoi creare un giorno festivo duplicato per la data %s." + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "Non è possibile creare giorni festivi duplicati per anno e/o nazione" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" +"Non puoi utilizzare come template i giorni festivi di un anno che include i " +"giorni festivi il 29 febbraio (2016, 2020...), seleziona un template di un " +"altro anno." + +#~ msgid "Last Modified on" +#~ msgstr "Ultima modifica il" diff --git a/hr_holidays_public/i18n/nl_NL.po b/hr_holidays_public/i18n/nl_NL.po new file mode 100644 index 00000000..c0952c08 --- /dev/null +++ b/hr_holidays_public/i18n/nl_NL.po @@ -0,0 +1,296 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# Peter Hageman , 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 , 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_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "Kalenderjaar" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms: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_leave_type__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_leave_type__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__write_uid +#: 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_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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "Laatst bijgewerkt op" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" + +#~ msgid "Last Modified on" +#~ msgstr "Laatst gewijzigd op" diff --git a/hr_holidays_public/i18n/pl.po b/hr_holidays_public/i18n/pl.po new file mode 100644 index 00000000..e85af399 --- /dev/null +++ b/hr_holidays_public/i18n/pl.po @@ -0,0 +1,294 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 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 , 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_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms: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_leave_type__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_leave_type__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__write_uid +#: 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_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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" diff --git a/hr_holidays_public/i18n/pt_BR.po b/hr_holidays_public/i18n/pt_BR.po new file mode 100644 index 00000000..2ac3ce16 --- /dev/null +++ b/hr_holidays_public/i18n/pt_BR.po @@ -0,0 +1,299 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 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: 2019-11-24 20:57+0000\n" +"Last-Translator: Rodrigo Macedo \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" +"X-Generator: Weblate 3.8\n" + +#. module: hr_holidays_public +#: model_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Create" +msgstr "Criado" + +#. 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_terms: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 "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 "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Defaults" +msgstr "Padrões" + +#. 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 "Exibir Nome" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_leave_type__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 "Identificação" + +#. module: hr_holidays_public +#: model:ir.model.fields,help:hr_holidays_public.field_hr_leave_type__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__write_uid +#: 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_public_holidays_next_year_wizard__write_uid +msgid "Last Updated by" +msgstr "Última atualização por" + +#. module: hr_holidays_public +#: 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_hr_holidays_public_line__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 Atualização no" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" + +#. module: hr_holidays_public +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.holidays_public_next_year_wizard_view +msgid "Optional" +msgstr "Opcional" + +#. 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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +msgid "Public Holidays" +msgstr "Feriados Públicos" + +#. 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 Working Time" +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 "Modelos" + +#. module: hr_holidays_public +#: model_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 "Ano" + +#. 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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" + +#~ msgid "Last Modified on" +#~ msgstr "Última modificação em" + +#~ msgid "Leave" +#~ msgstr "Sair" diff --git a/hr_holidays_public/i18n/ro.po b/hr_holidays_public/i18n/ro.po new file mode 100644 index 00000000..c5e106d6 --- /dev/null +++ b/hr_holidays_public/i18n/ro.po @@ -0,0 +1,292 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 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 , 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_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms: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_leave_type__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_leave_type__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__write_uid +#: 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_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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "Ultima actualizare în" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" diff --git a/hr_holidays_public/i18n/sl.po b/hr_holidays_public/i18n/sl.po new file mode 100644 index 00000000..8dbb6bea --- /dev/null +++ b/hr_holidays_public/i18n/sl.po @@ -0,0 +1,296 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_holidays_public +# +# Translators: +# OCA Transbot , 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 , 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_terms: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" +"

\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__year +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__year_id +msgid "Calendar Year" +msgstr "Koledarsko leto" + +#. module: hr_holidays_public +#: model_terms: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_terms: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_terms: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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, 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_terms: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_leave_type__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_leave_type__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__write_uid +#: 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_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__write_date +#: 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_public_holidays_next_year_wizard__write_date +msgid "Last Updated on" +msgstr "Zadnjič posodobljeno" + +#. module: hr_holidays_public +#: model:ir.model.fields,field_description:hr_holidays_public.field_hr_holidays_public_line__meeting_id +msgid "Meeting" +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 +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, python-format +msgid "" +"No Public Holidays found as template. Please create the first Public " +"Holidays manually." +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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_terms:ir.ui.view,arch_db:hr_holidays_public.edit_holiday_status_form +#: model_terms:ir.ui.view,arch_db:hr_holidays_public.view_holidays_public_form +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 Working Time" +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_terms: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.model,name:hr_holidays_public.model_hr_leave +msgid "Time Off" +msgstr "" + +#. module: hr_holidays_public +#: model:ir.model,name:hr_holidays_public.model_hr_leave_type +msgid "Time Off Type" +msgstr "" + +#. module: hr_holidays_public +#: model_terms: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.
\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 +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "" +"You can't create duplicate public holiday per date %s and one of the country " +"states." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per date %s." +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/models/hr_holidays_public.py:0 +#, python-format +msgid "You can't create duplicate public holiday per year and/or country" +msgstr "" + +#. module: hr_holidays_public +#. odoo-python +#: code:addons/hr_holidays_public/wizards/holidays_public_next_year_wizard.py:0 +#, 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 "" + +#~ msgid "Last Modified on" +#~ msgstr "Zadnjič spremenjeno" diff --git a/hr_holidays_public/models/__init__.py b/hr_holidays_public/models/__init__.py new file mode 100644 index 00000000..31140b50 --- /dev/null +++ b/hr_holidays_public/models/__init__.py @@ -0,0 +1,6 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import hr_leave +from . import hr_leave_type +from . import hr_holidays_public +from . import resource_calendar diff --git a/hr_holidays_public/models/hr_holidays_public.py b/hr_holidays_public/models/hr_holidays_public.py new file mode 100644 index 00000000..9978ff12 --- /dev/null +++ b/hr_holidays_public/models/hr_holidays_public.py @@ -0,0 +1,230 @@ +# Copyright 2015 2011,2013 Michael Telahun Makonnen +# Copyright 2020 InitOS Gmbh +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +import datetime +from datetime import date + +from odoo import SUPERUSER_ID, _, api, fields, models +from odoo.exceptions import ValidationError + + +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", 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.constrains("year", "country_id") + def _check_year(self): + for line in self: + line._check_year_one() + + def _check_year_one(self): + if self.search_count( + [ + ("year", "=", self.year), + ("country_id", "=", self.country_id.id), + ("id", "!=", self.id), + ] + ): + raise ValidationError( + _( + "You can't create duplicate public holiday per year and/or" + " country" + ) + ) + return True + + @api.depends("year", "country_id") + def _compute_display_name(self): + for line in self: + if line.country_id: + line.display_name = f"{line.year} ({line.country_id.name})" + else: + line.display_name = line.year + + def _get_domain_states_filter(self, pholidays, start_dt, end_dt, partner_id=None): + partner = self.env["res.partner"].browse(partner_id) + states_filter = [("year_id", "in", pholidays.ids)] + if partner and partner.state_id: + states_filter += [ + "|", + ("state_ids", "=", False), + ("state_ids", "=", partner.state_id.id), + ] + else: + states_filter.append(("state_ids", "=", False)) + states_filter.append(("date", ">=", start_dt)) + states_filter.append(("date", "<=", end_dt)) + return states_filter + + @api.model + @api.returns("hr.holidays.public.line") + def get_holidays_list(self, year=None, start_dt=None, end_dt=None, partner_id=None): + """ + Returns recordset of hr.holidays.public.line + for the specified year and employee + :param year: year as string (optional if start_dt and end_dt defined) + :param start_dt: start_dt as date + :param end_dt: end_dt as date + :param partner_id: ID of the partner + :return: recordset of hr.holidays.public.line + """ + partner = self.env["res.partner"].browse(partner_id) + if not start_dt and not end_dt: + start_dt = datetime.date(year, 1, 1) + end_dt = datetime.date(year, 12, 31) + years = list(range(start_dt.year, end_dt.year + 1)) + holidays_filter = [("year", "in", years)] + if partner: + if partner.country_id: + holidays_filter.append("|") + holidays_filter.append(("country_id", "=", False)) + holidays_filter.append(("country_id", "=", partner.country_id.id)) + else: + holidays_filter.append(("country_id", "=", False)) + pholidays = self.search(holidays_filter) + if not pholidays: + return self.env["hr.holidays.public.line"] + partner_id = partner.id if partner else None + states_filter = self._get_domain_states_filter( + pholidays, start_dt, end_dt, partner_id=partner_id + ) + 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, partner_id=None): + """ + Returns True if selected_date is a public holiday for the employee + :param selected_date: datetime object + :param partner_id: ID of the partner + :return: bool + """ + partner = self.env["res.partner"].browse(partner_id) + partner_id = partner.id if partner else None + holidays_lines = self.get_holidays_list( + year=selected_date.year, partner_id=partner_id + ) + if holidays_lines: + hol_date = holidays_lines.filtered(lambda r: r.date == 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(required=True) + date = fields.Date(required=True) + year_id = fields.Many2one( + "hr.holidays.public", "Calendar Year", required=True, ondelete="cascade" + ) + variable_date = fields.Boolean("Date may change", default=True) + state_ids = fields.Many2many( + "res.country.state", + "hr_holiday_public_state_rel", + "line_id", + "state_id", + "Related States", + ) + meeting_id = fields.Many2one("calendar.event", string="Meeting", copy=False) + + @api.constrains("date", "state_ids") + def _check_date_state(self): + for line in self: + line._check_date_state_one() + + def _get_domain_check_date_state_one_state_ids(self): + return [ + ("date", "=", self.date), + ("year_id", "=", self.year_id.id), + ("state_ids", "!=", False), + ("id", "!=", self.id), + ] + + def _get_domain_check_date_state_one(self): + return [ + ("date", "=", self.date), + ("year_id", "=", self.year_id.id), + ("state_ids", "=", False), + ] + + def _check_date_state_one(self): + if self.date.year != self.year_id.year: + raise ValidationError( + _( + "Dates of holidays should be the same year as the calendar" + " year they are being assigned to" + ) + ) + + if self.state_ids: + domain = self._get_domain_check_date_state_one_state_ids() + holidays = self.search(domain) + + for holiday in holidays: + if self.state_ids & holiday.state_ids: + raise ValidationError( + _( + "You can't create duplicate public holiday per date" + " %s and one of the country states." + ) + % self.date + ) + domain = self._get_domain_check_date_state_one() + if self.search_count(domain) > 1: + raise ValidationError( + _("You can't create duplicate public holiday per date %s.") % self.date + ) + return True + + def _prepare_holidays_meeting_values(self): + self.ensure_one() + categ_id = self.env.ref("hr_holidays_public.event_type_holiday", False) + meeting_values = { + "name": ( + f"{self.name} ({self.year_id.country_id.name})" + if self.year_id.country_id + else self.name + ), + "description": ", ".join(self.state_ids.mapped("name")), + "start": self.date, + "stop": self.date, + "allday": True, + "user_id": SUPERUSER_ID, + "privacy": "confidential", + "show_as": "busy", + } + if categ_id: + meeting_values.update({"categ_ids": [(6, 0, categ_id.ids)]}) + return meeting_values + + @api.constrains("date", "name", "year_id", "state_ids") + def _update_calendar_event(self): + for rec in self: + if rec.meeting_id: + rec.meeting_id.write(rec._prepare_holidays_meeting_values()) + + @api.model_create_multi + def create(self, vals_list): + res = super().create(vals_list) + for record in res: + record.meeting_id = self.env["calendar.event"].create( + record._prepare_holidays_meeting_values() + ) + return res + + def unlink(self): + self.mapped("meeting_id").unlink() + return super().unlink() diff --git a/hr_holidays_public/models/hr_leave.py b/hr_holidays_public/models/hr_leave.py new file mode 100644 index 00000000..05dd7222 --- /dev/null +++ b/hr_holidays_public/models/hr_leave.py @@ -0,0 +1,90 @@ +# Copyright 2017-2021 Tecnativa - Pedro M. Baeza +# Copyright 2018 Brainbean Apps +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class HrLeave(models.Model): + _inherit = "hr.leave" + + def action_validate(self, check_state=True): + """Inject the needed context for excluding public holidays (if applicable) on + the actions derived from this validation. This is required for example for + `project_timesheet_holidays` for not generating the timesheet on the public + holiday. Unfortunately, no regression test can be added, being in a separate + module. + """ + for leave in self: + if ( + leave.holiday_status_id.exclude_public_holidays + or not leave.holiday_status_id + ): + leave = leave.with_context( + employee_id=leave.employee_id.id, exclude_public_holidays=True + ) + super(HrLeave, leave).action_validate(check_state) + return True + + def _get_durations(self, check_leave_type=True, resource_calendar=None): + if self.holiday_status_id.exclude_public_holidays or not self.holiday_status_id: + instance = self.with_context( + employee_id=self.employee_id.id, exclude_public_holidays=True + ) + else: + instance = self + return super(HrLeave, instance)._get_durations( + check_leave_type, resource_calendar + ) + + def _get_domain_from_get_unusual_days(self, date_from, date_to=None): + domain = [("date", ">=", date_from)] + # Use the employee of the user or the one who has the context + employee_id = self.env.context.get("employee_id", False) + employee = ( + self.env["hr.employee"].browse(employee_id) + if employee_id + else self.env.user.employee_id + ) + if date_to: + domain.append( + ( + "date", + "<", + date_to, + ) + ) + country_id = employee.address_id.country_id.id + if not country_id: + country_id = self.env.company.country_id.id or False + if country_id: + domain.extend( + [ + "|", + ("year_id.country_id", "=", False), + ("year_id.country_id", "=", country_id), + ] + ) + state_id = employee.address_id.state_id.id + if not state_id: + state_id = self.env.company.state_id.id or False + if state_id: + domain.extend( + [ + "|", + ("state_ids", "in", [state_id]), + ("state_ids", "=", False), + ] + ) + return domain + + @api.model + def get_unusual_days(self, date_from, date_to=None): + res = super().get_unusual_days(date_from, date_to=date_to) + domain = self._get_domain_from_get_unusual_days( + date_from=date_from, date_to=date_to + ) + public_holidays = self.env["hr.holidays.public.line"].search(domain) + for public_holiday in public_holidays: + res[fields.Date.to_string(public_holiday.date)] = True + return res diff --git a/hr_holidays_public/models/hr_leave_type.py b/hr_holidays_public/models/hr_leave_type.py new file mode 100644 index 00000000..679ee7d3 --- /dev/null +++ b/hr_holidays_public/models/hr_leave_type.py @@ -0,0 +1,14 @@ +# Copyright 2017-2018 Tecnativa - Pedro M. Baeza +# Copyright 2018 Brainbean Apps +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class HrLeaveType(models.Model): + _inherit = "hr.leave.type" + + exclude_public_holidays = fields.Boolean( + default=True, + help="If enabled, public holidays are skipped in leave days calculation.", + ) diff --git a/hr_holidays_public/models/resource_calendar.py b/hr_holidays_public/models/resource_calendar.py new file mode 100644 index 00000000..1d0088ad --- /dev/null +++ b/hr_holidays_public/models/resource_calendar.py @@ -0,0 +1,51 @@ +# Copyright 2017-2018 Tecnativa - Pedro M. Baeza +# Copyright 2018 Brainbean Apps +# Copyright 2020 InitOS Gmbh +# Copyright 2021 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import models + +from odoo.addons.resource.models.resource_resource import Intervals + + +class ResourceCalendar(models.Model): + _inherit = "resource.calendar" + + def _attendance_intervals_batch_exclude_public_holidays( + self, start_dt, end_dt, intervals, resources, tz + ): + list_by_dates = ( + self.env["hr.holidays.public"] + .get_holidays_list( + start_dt=start_dt.date(), + end_dt=end_dt.date(), + partner_id=self.env.context.get("partner_id", False), + ) + .mapped("date") + ) + for resource in resources: + interval_resource = intervals[resource.id] + attendances = [] + for attendance in interval_resource._items: + if attendance[0].date() not in list_by_dates: + attendances.append(attendance) + intervals[resource.id] = Intervals(attendances) + return intervals + + def _attendance_intervals_batch( + self, start_dt, end_dt, resources=None, domain=None, tz=None, lunch=False + ): + res = super()._attendance_intervals_batch( + start_dt=start_dt, + end_dt=end_dt, + resources=resources, + domain=domain, + tz=tz, + lunch=lunch, + ) + if self.env.context.get("exclude_public_holidays") and resources: + return self._attendance_intervals_batch_exclude_public_holidays( + start_dt, end_dt, res, resources, tz + ) + return res diff --git a/hr_holidays_public/pyproject.toml b/hr_holidays_public/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/hr_holidays_public/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/hr_holidays_public/readme/CONFIGURE.md b/hr_holidays_public/readme/CONFIGURE.md new file mode 100644 index 00000000..f2449521 --- /dev/null +++ b/hr_holidays_public/readme/CONFIGURE.md @@ -0,0 +1,4 @@ +Go to *Time Off -\> Configuration -\> Time Off Types* and open a Leave +Type + +- Check "Exclude Public Holidays" to exclude public holidays. diff --git a/hr_holidays_public/readme/CONTRIBUTORS.md b/hr_holidays_public/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..2805c94e --- /dev/null +++ b/hr_holidays_public/readme/CONTRIBUTORS.md @@ -0,0 +1,21 @@ +- Michael Telahun Makonnen \<\> +- Fekete Mihai \<\> +- Nikolina Todorova \<\> +- Alexis de Lattre \<\> +- Salton Massally (iDT Labs) \<\> +- Ivan Yelizariev \<\> +- Bassirou Ndaw \<\> +- Dhara Solanki \<\> +- [Tecnativa](https://www.tecnativa.com): + - Pedro M. Baeza +- [CorporateHub](https://corporatehub.eu/) + - Alexey Pelykh \<\> +- [Camptocamp](https://www.camptocamp.com): + - Damien Crier \<\> +- [Druidoo](https://www.druidoo.io): + - Iván Todorovich \<\> +- [Pesol](https://www.pesol.es): + - Pedro Evaristo Gonzalez Sanchez \<\> +- [Trobz](https://trobz.com): + - Thao Le \<\> + - Do Anh Duy \<\> diff --git a/hr_holidays_public/readme/CREDITS.md b/hr_holidays_public/readme/CREDITS.md new file mode 100644 index 00000000..6982d247 --- /dev/null +++ b/hr_holidays_public/readme/CREDITS.md @@ -0,0 +1,2 @@ +The migration of this module from 16.0 to 17.0 was financially supported by Camptocamp. +The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp. diff --git a/hr_holidays_public/readme/DESCRIPTION.md b/hr_holidays_public/readme/DESCRIPTION.md new file mode 100644 index 00000000..bdc4aba8 --- /dev/null +++ b/hr_holidays_public/readme/DESCRIPTION.md @@ -0,0 +1,7 @@ +This module handles public holidays. + +The calculation of each leave can exclude rest public holiday, depending +on the leave type configuration. + +In HR holiday app, public holiday will be displayed as unusual days +(grey like weekends). diff --git a/hr_holidays_public/readme/ROADMAP.md b/hr_holidays_public/readme/ROADMAP.md new file mode 100644 index 00000000..6c9f011f --- /dev/null +++ b/hr_holidays_public/readme/ROADMAP.md @@ -0,0 +1,17 @@ +In Odoo 12.0, \_leave_intervals() returns Intervals which is a list of +tuples (start_timestamp, end_timestamp, resource.calendar.leaves +record). Since this module does not operate with +resource.calendar.leaves, it's setting third component of a tuple to a +hr.holidays.public.line record. This may or may not be a problem, yet +since this component is also being set to resource.calendar.attendance +records in \_attendance_intervals(), seems it should be ok. + +There are no restrictions to block users from modifying or removing +calendar events linked to public holidays. There's a suggestion to +overload write and unlink methods of calendar.event, but it might have +other impacts like users not being able to edit event tags, or even +custom fields. + +Regional public holidays are shown in the public calendar. The regions +will be noted in the description of the event, but it'll be shown to all +users. It'd be good to have it show only for users in these regions. diff --git a/hr_holidays_public/readme/USAGE.md b/hr_holidays_public/readme/USAGE.md new file mode 100644 index 00000000..2c834a24 --- /dev/null +++ b/hr_holidays_public/readme/USAGE.md @@ -0,0 +1,24 @@ +For adding public holidays: + +1. Go to the menu *Leaves \> Public Holidays \> Public Holidays*. +2. Create your public holidays. + +For using public holidays on leaves: + +1. Go to *Time Off \> Dashboard*. +2. 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. +3. Select the proper "Leave Type" that has "Exclude Public Holidays" + checked. +4. If no leave type is yet specified, then default configuration is to + exclude public holidays. +5. The number of days will be computed excluding public holidays that + match the selected employee, including global, country and state + holidays. +6. If no employee is yet selected, only global holidays will be taken + into account. + +In calendar views in HR holiday app public will be display (likes other +unusual days) according the current user employee country/state. If not +set the there is a fallback to the current company country/state to +filter public holidays. diff --git a/hr_holidays_public/security/ir.model.access.csv b/hr_holidays_public/security/ir.model.access.csv new file mode 100644 index 00000000..ac3ea336 --- /dev/null +++ b/hr_holidays_public/security/ir.model.access.csv @@ -0,0 +1,6 @@ +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 +access_hr_holidays_public_manager_next_year_wizard,access_hr_holidays_public_next_year_wizard,model_public_holidays_next_year_wizard,hr_holidays.group_hr_holidays_manager,1,1,1,1 diff --git a/hr_holidays_public/static/description/icon.png b/hr_holidays_public/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/hr_holidays_public/static/description/icon.png differ diff --git a/hr_holidays_public/static/description/icon.svg b/hr_holidays_public/static/description/icon.svg new file mode 100644 index 00000000..a7a26d09 --- /dev/null +++ b/hr_holidays_public/static/description/icon.svg @@ -0,0 +1,79 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/hr_holidays_public/static/description/index.html b/hr_holidays_public/static/description/index.html new file mode 100644 index 00000000..b1a8daef --- /dev/null +++ b/hr_holidays_public/static/description/index.html @@ -0,0 +1,526 @@ + + + + + +HR Holidays Public + + + +
+

HR Holidays Public

+ + +

Beta License: AGPL-3 OCA/hr-holidays Translate me on Weblate Try me on Runboat

+

This module handles public holidays.

+

The calculation of each leave can exclude rest public holiday, depending +on the leave type configuration.

+

In HR holiday app, public holiday will be displayed as unusual days +(grey like weekends).

+

Table of contents

+ +
+

Configuration

+

Go to Time Off -> Configuration -> Time Off Types and open a Leave +Type

+
    +
  • Check “Exclude Public Holidays” to exclude public holidays.
  • +
+
+
+

Usage

+

For adding public holidays:

+
    +
  1. Go to the menu Leaves > Public Holidays > Public Holidays.
  2. +
  3. Create your public holidays.
  4. +
+

For using public holidays on leaves:

+
    +
  1. Go to Time Off > Dashboard.
  2. +
  3. 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.
  4. +
  5. Select the proper “Leave Type” that has “Exclude Public Holidays” +checked.
  6. +
  7. If no leave type is yet specified, then default configuration is to +exclude public holidays.
  8. +
  9. The number of days will be computed excluding public holidays that +match the selected employee, including global, country and state +holidays.
  10. +
  11. If no employee is yet selected, only global holidays will be taken +into account.
  12. +
+

In calendar views in HR holiday app public will be display (likes other +unusual days) according the current user employee country/state. If not +set the there is a fallback to the current company country/state to +filter public holidays.

+
+
+

Known issues / Roadmap

+

In Odoo 12.0, _leave_intervals() returns Intervals which is a list of +tuples (start_timestamp, end_timestamp, resource.calendar.leaves +record). Since this module does not operate with +resource.calendar.leaves, it’s setting third component of a tuple to a +hr.holidays.public.line record. This may or may not be a problem, yet +since this component is also being set to resource.calendar.attendance +records in _attendance_intervals(), seems it should be ok.

+

There are no restrictions to block users from modifying or removing +calendar events linked to public holidays. There’s a suggestion to +overload write and unlink methods of calendar.event, but it might have +other impacts like users not being able to edit event tags, or even +custom fields.

+

Regional public holidays are shown in the public calendar. The regions +will be noted in the description of the event, but it’ll be shown to all +users. It’d be good to have it show only for users in these regions.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

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)
  • +
  • Druidoo
  • +
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The migration of this module from 16.0 to 17.0 was financially supported +by Camptocamp. The migration of this module from 17.0 to 18.0 was +financially supported by Camptocamp.

+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/hr-holidays project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/hr_holidays_public/tests/__init__.py b/hr_holidays_public/tests/__init__.py new file mode 100644 index 00000000..cd3e40a1 --- /dev/null +++ b/hr_holidays_public/tests/__init__.py @@ -0,0 +1,4 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import test_holidays_calculation +from . import test_holidays_public diff --git a/hr_holidays_public/tests/test_holidays_calculation.py b/hr_holidays_public/tests/test_holidays_calculation.py new file mode 100644 index 00000000..894d704c --- /dev/null +++ b/hr_holidays_public/tests/test_holidays_calculation.py @@ -0,0 +1,196 @@ +# Copyright 2015 iDT LABS (http://www.@idtlabs.sl) +# Copyright 2017-2018 Tecnativa - Pedro M. Baeza +# Copyright 2018 Brainbean Apps +# Copyright 2020 InitOS Gmbh +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo.tests.common import TransactionCase + +from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT + + +class TestHolidaysComputeDaysBase(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT)) + cls.HrLeave = cls.env["hr.leave"] + cls.HrLeaveType = cls.env["hr.leave.type"] + cls.HrHolidaysPublic = cls.env["hr.holidays.public"] + 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.public_holiday_global_1947 = cls.HrHolidaysPublic.create( + { + "year": 1947, + "line_ids": [ + (0, 0, {"name": "New Eve", "date": "1947-01-01"}), + (0, 0, {"name": "New Eve extended", "date": "1947-01-02"}), + ], + } + ) + + cls.holiday_type = cls.HrLeaveType.create( + {"name": "Leave Type Test", "exclude_public_holidays": True} + ) + cls.holiday_type_no_excludes = cls.HrLeaveType.create( + { + "name": "Leave Type Test Without excludes", + "exclude_public_holidays": False, + } + ) + + +class TestHolidaysComputeDays(TestHolidaysComputeDaysBase): + def test_number_days_excluding_employee_1(self): + leave_request = self.HrLeave.with_context( + partner_id=self.employee_1.address_id.id + ).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, + } + ) + self.assertEqual(leave_request.number_of_days, 4) + + def _test_number_days_excluding_employee_2(self): + leave_request = self.HrLeave.with_context( + partner_id=self.employee_2.address_id.id + ).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, + } + ) + self.assertEqual(leave_request.number_of_days, 2) + + def test_number_days_not_excluding(self): + leave_request = self.HrLeave.with_context( + partner_id=self.employee_1.address_id.id + ).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, + } + ) + self.assertEqual(leave_request.number_of_days, 5) + + def test_number_days_across_year(self): + leave_request = self.HrLeave.with_context( + partner_id=self.employee_1.address_id.id + ).new( + { + "date_from": "1946-12-23 00:00:00", # Monday + "date_to": "1947-01-03 23:59:59", # Friday + "holiday_status_id": self.holiday_type.id, + "employee_id": self.employee_1.id, + } + ) + self.assertEqual(leave_request.number_of_days, 7) + + def test_number_days_across_year_2(self): + leave_request = self.HrLeave.with_context( + partner_id=self.employee_2.address_id.id + ).new( + { + "date_from": "1946-12-23 00:00:00", # Monday + "date_to": "1947-01-03 23:59:59", # Friday + "holiday_status_id": self.holiday_type.id, + "employee_id": self.employee_2.id, + } + ) + self.assertEqual(leave_request.number_of_days, 5) + + def test_number_of_hours_excluding_employee_2(self): + self.holiday_type.request_unit = "hour" + leave_request = self.HrLeave.with_context( + partner_id=self.employee_2.address_id.id + ).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, + } + ) + + self.assertEqual(leave_request.number_of_days, 2) diff --git a/hr_holidays_public/tests/test_holidays_public.py b/hr_holidays_public/tests/test_holidays_public.py new file mode 100644 index 00000000..30047dea --- /dev/null +++ b/hr_holidays_public/tests/test_holidays_public.py @@ -0,0 +1,334 @@ +# Copyright 2015 Salton Massally +# Copyright 2018 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from datetime import date + +from odoo.exceptions import UserError, ValidationError +from odoo.tests.common import TransactionCase + +from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT + + +class TestHolidaysPublicBase(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT)) + cls.holiday_model = cls.env["hr.holidays.public"] + cls.holiday_model_line = cls.env["hr.holidays.public.line"] + cls.employee_model = cls.env["hr.employee"] + cls.wizard_next_year = cls.env["public.holidays.next.year.wizard"] + cls.leave_model = cls.env["hr.leave"] + + # Remove possibly existing public holidays that would interfer. + cls.holiday_model_line.search([]).unlink() + cls.holiday_model.search([]).unlink() + + # Create holidays + holiday2 = cls.holiday_model.create( + {"year": 1994, "country_id": cls.env.ref("base.sl").id} + ) + cls.holiday_model_line.create( + {"name": "holiday 5", "date": "1994-10-14", "year_id": holiday2.id} + ) + + holiday3 = cls.holiday_model.create( + {"year": 1994, "country_id": cls.env.ref("base.sk").id} + ) + cls.holiday_model_line.create( + {"name": "holiday 6", "date": "1994-11-14", "year_id": holiday3.id} + ) + + cls.holiday1 = cls.holiday_model.create({"year": 1995}) + for dt in ["1995-10-14", "1995-12-31", "1995-01-01"]: + cls.holiday_model_line.create( + {"name": "holiday x", "date": dt, "year_id": cls.holiday1.id} + ) + + cls.employee = cls.employee_model.create( + { + "name": "Employee 1", + "address_id": cls.env["res.partner"] + .create({"name": "Employee 1", "country_id": cls.env.ref("base.sl").id}) + .id, + } + ) + + +class TestHolidaysPublic(TestHolidaysPublicBase): + def test_display_name(self): + line = self.holiday_model.create({"year": 1999}) + if line.country_id: + display_name = f"{line.year} ({line.country_id.name})" + else: + display_name = str(line.year) + self.assertEqual(line.display_name, display_name) + + 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(date(1995, 12, 10))) + + def test_is_holiday(self): + # ensures that correct holidays are identified + self.assertTrue(self.holiday_model.is_public_holiday(date(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( + date(1994, 11, 14), partner_id=self.employee.address_id.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( + date(1994, 10, 14), partner_id=self.employee.address_id.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, partner_id=self.employee.address_id.id + ) + res = lines.filtered(lambda r: r.date == 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 == date(1995, 10, 14)) + self.assertEqual(len(res), 1) + self.assertEqual(len(lines), 3) + + def test_create_next_year_public_holidays(self): + old_meeting = self.holiday1.line_ids[0].meeting_id + self.wizard_next_year.new().create_public_holidays() + # Ensure that the previous meeting date is preserved + self.assertEqual(old_meeting.start.year, 1995) + lines = self.holiday_model.get_holidays_list(1996) + # The meeting is not the same for the new entries + self.assertFalse(any(x.meeting_id == old_meeting for x in lines)) + # There's a meeting for the new entries + self.assertTrue(lines[0].meeting_id) + self.assertEqual(lines[0].meeting_id.start.year, 1996) + res = lines.filtered(lambda r: r.date == 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() + + def test_calendar_event_created(self): + holiday = self.holiday_model.create( + {"year": 2019, "country_id": self.env.ref("base.us").id} + ) + hline = self.holiday_model_line.create( + {"name": "holiday x", "date": "2019-07-30", "year_id": holiday.id} + ) + meeting_id = hline.meeting_id + self.assertTrue(meeting_id) + hline.unlink() + self.assertFalse(meeting_id.exists()) + + def assertPublicHolidayIsUnusualDay( + self, expected, country_id=None, state_ids=False + ): + self.assertFalse( + self.leave_model.with_user(self.env.ref("base.user_demo").id) + .get_unusual_days("2019-07-01", date_to="2019-07-31") + .get("2019-07-30", False) + ) + holiday = self.holiday_model.create({"year": 2019, "country_id": country_id}) + self.holiday_model_line.create( + { + "name": "holiday x", + "date": "2019-07-30", + "year_id": holiday.id, + "state_ids": state_ids, + } + ) + self.assertEqual( + self.leave_model.with_user( + self.env.ref("base.user_demo").id + ).get_unusual_days("2019-07-01", date_to="2019-07-31")["2019-07-30"], + expected, + ) + + def test_public_holidays_context(self): + self.env.ref("base.user_demo").employee_id.address_id.country_id = False + self.leave_model = self.leave_model.with_context( + partner_id=self.employee.address_id.id + ) + self.assertPublicHolidayIsUnusualDay( + True, + country_id=self.env.ref( + "base.user_demo" + ).employee_id.address_id.country_id.id, + ) + + def test_get_unusual_days_return_public_holidays_same_country(self): + self.env.ref("base.user_demo").employee_id.address_id.state_id = False + self.env.company.state_id = False + self.assertPublicHolidayIsUnusualDay( + True, + country_id=self.env.ref( + "base.user_demo" + ).employee_id.address_id.country_id.id, + ) + + def test_get_unusual_days_return_general_public_holidays(self): + self.env.ref("base.user_demo").employee_id.address_id.state_id = False + self.env.company.state_id = False + self.assertPublicHolidayIsUnusualDay(True, country_id=False) + + def test_get_unusual_days_not_return_public_holidays_different_country(self): + self.env.ref("base.user_demo").employee_id.address_id.state_id = False + self.env.company.state_id = False + self.env.ref("base.user_demo").employee_id.address_id.country_id = self.env.ref( + "base.fr" + ) + self.assertPublicHolidayIsUnusualDay( + False, country_id=self.env.ref("base.us").id + ) + + def test_get_unusual_days_return_public_holidays_fallback_to_company_country(self): + self.env.ref("base.user_demo").employee_id.address_id.state_id = False + self.env.company.state_id = False + self.env.ref("base.user_demo").employee_id.address_id.country_id = False + self.assertPublicHolidayIsUnusualDay( + True, country_id=self.env.company.country_id.id + ) + + def test_get_unusual_days_not_return_public_holidays_fallback_to_company_country( + self, + ): + self.env.ref("base.user_demo").employee_id.address_id.state_id = False + self.env.company.state_id = False + self.env.ref("base.user_demo").employee_id.address_id.country_id = False + self.env.company.country_id = self.env.ref("base.fr") + self.assertPublicHolidayIsUnusualDay( + False, country_id=self.env.ref("base.us").id + ) + + def test_get_unusual_days_return_public_holidays_same_state(self): + demo_user_empl_addr = self.env.ref("base.user_demo").employee_id.address_id + demo_user_empl_addr.country_id = self.env.ref("base.us") + demo_user_empl_addr.state_id = self.env.ref("base.state_us_4") + self.assertPublicHolidayIsUnusualDay( + True, + country_id=self.env.ref( + "base.user_demo" + ).employee_id.address_id.country_id.id, + state_ids=[(6, 0, [demo_user_empl_addr.state_id.id])], + ) + + def test_get_unusual_days_not_return_public_holidays_different_state(self): + demo_user_empl_addr = self.env.ref("base.user_demo").employee_id.address_id + demo_user_empl_addr.country_id = self.env.ref("base.us") + demo_user_empl_addr.state_id = self.env.ref("base.state_us_4") + self.assertPublicHolidayIsUnusualDay( + False, + country_id=self.env.ref("base.us").id, + state_ids=[(6, 0, [self.env.ref("base.state_us_35").id])], + ) + + def test_get_unusual_days_return_public_holidays_fallback_to_company_state(self): + self.env.ref("base.user_demo").employee_id = False + self.assertPublicHolidayIsUnusualDay( + True, + country_id=self.env.company.country_id.id, + state_ids=[(6, 0, [self.env.company.state_id.id])], + ) + + def test_get_unusual_days_not_return_public_holidays_fallback_to_company_state( + self, + ): + demo_user_empl_addr = self.env.ref("base.user_demo").employee_id.address_id + demo_user_empl_addr.country_id = self.env.ref("base.us") + demo_user_empl_addr.state_id = False + self.env.company.state_id = self.env.ref("base.state_us_4") + self.assertPublicHolidayIsUnusualDay( + False, + country_id=demo_user_empl_addr.country_id.id, + state_ids=[(6, 0, [self.env.ref("base.state_us_3").id])], + ) diff --git a/hr_holidays_public/views/hr_holidays_public_view.xml b/hr_holidays_public/views/hr_holidays_public_view.xml new file mode 100644 index 00000000..2ce0ec8d --- /dev/null +++ b/hr_holidays_public/views/hr_holidays_public_view.xml @@ -0,0 +1,64 @@ + + + + hr.holidays.public.list + hr.holidays.public + + + + + + + + + hr.holidays.public.form + hr.holidays.public + +
+ + + + + + + + + + + + + + + + + + + +
+
+ + Public Holidays + hr.holidays.public + list,form + + + +
diff --git a/hr_holidays_public/views/hr_leave_type.xml b/hr_holidays_public/views/hr_leave_type.xml new file mode 100644 index 00000000..8fba166f --- /dev/null +++ b/hr_holidays_public/views/hr_leave_type.xml @@ -0,0 +1,19 @@ + + + + + hr.leave.type.form + hr.leave.type + + + + + + + + + + diff --git a/hr_holidays_public/wizards/__init__.py b/hr_holidays_public/wizards/__init__.py new file mode 100644 index 00000000..5b2df34b --- /dev/null +++ b/hr_holidays_public/wizards/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import holidays_public_next_year_wizard diff --git a/hr_holidays_public/wizards/holidays_public_next_year_wizard.py b/hr_holidays_public/wizards/holidays_public_next_year_wizard.py new file mode 100644 index 00000000..611e4a9f --- /dev/null +++ b/hr_holidays_public/wizards/holidays_public_next_year_wizard.py @@ -0,0 +1,97 @@ +# Copyright 2016 Trobz +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +import logging + +from odoo import _, fields, models +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." + ) + + 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: + feb_29 = last_ph_line.date.month == 2 and last_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 = last_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": "list,form", + "res_model": "hr.holidays.public", + "domain": domain, + } + + return action diff --git a/hr_holidays_public/wizards/holidays_public_next_year_wizard.xml b/hr_holidays_public/wizards/holidays_public_next_year_wizard.xml new file mode 100644 index 00000000..b75334d2 --- /dev/null +++ b/hr_holidays_public/wizards/holidays_public_next_year_wizard.xml @@ -0,0 +1,72 @@ + + + + + Create Next Year Public Holidays + public.holidays.next.year.wizard + +
+ +
+ Use this wizard to create public holidays based on the + existing ones.
+ 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). +
+ + +
+ By default, the most recent public holidays + for each country are used as template to create + public holidays for the year following the templates. +

+ Normally, you should not need to input anything in + optional fields and only need to click on the button + "Create". +
+
+ +
+ 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." +
+ + + + +
+
+
+
+
+
+
+
+ + Create Next Year Public Holidays + public.holidays.next.year.wizard + form + new + + +