Skip to content

Commit

Permalink
Merge PR #141 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 17, 2024
2 parents cb09d4d + df9187e commit 9851c50
Show file tree
Hide file tree
Showing 23 changed files with 1,134 additions and 0 deletions.
107 changes: 107 additions & 0 deletions hr_holidays_natural_period/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
=======================
Holidays natural period
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:78da5aea18b0817984f207d9021d5623f8a1fe9d26a6160c4219a54b9f878df5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/17.0/hr_holidays_natural_period
: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-17-0/hr-holidays-17-0-hr_holidays_natural_period
: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=17.0
:alt: Try me on Runboat

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

This module was written to define natural day option in request unit on
holidays type.

**Table of contents**

.. contents::
:local:

Usage
=====

For using natural period on leaves:

1. Go to *Leaves > 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 "Natural day" selected in
"Request unit".
4. If no leave type is yet specified, then default configuration is to
exclude public holidays.
5. The number of days will be computed without employee calendar used.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr-holidays/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/hr-holidays/issues/new?body=module:%20hr_holidays_natural_period%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

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

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

- Víctor Martínez
- Pedro Baeza
- Carlos López

- APSL-Nagarro <https://www.apsl.tech>

- Antoni Marroig <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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

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

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

|maintainer-victoralmau|

This module is part of the `OCA/hr-holidays <https://github.com/OCA/hr-holidays/tree/17.0/hr_holidays_natural_period>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions hr_holidays_natural_period/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions hr_holidays_natural_period/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2020 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Holidays natural period",
"summary": "Apply natural days in holidays",
"version": "17.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/hr-holidays",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": ["hr_holidays"],
"maintainers": ["victoralmau"],
"demo": ["demo/hr_leave_type_data.xml"],
}
9 changes: 9 additions & 0 deletions hr_holidays_natural_period/demo/hr_leave_type_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="hr_leave_type_natural_day_test" model="hr.leave.type">
<field name="name">Test Time Off (natural day)</field>
<field name="request_unit">natural_day</field>
<field name="responsible_ids" eval="[(4, ref('base.user_admin'))]" />
<field name="employee_requests">yes</field>
</record>
</odoo>
47 changes: 47 additions & 0 deletions hr_holidays_natural_period/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_natural_period
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-02-14 11:16+0000\n"
"Last-Translator: Noel estudillo <[email protected]>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: hr_holidays_natural_period
#: model:ir.model.fields.selection,name:hr_holidays_natural_period.selection__hr_leave_type__request_unit__natural_day
msgid "Natural day"
msgstr "Dia natural"

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

#. module: hr_holidays_natural_period
#: model:ir.model.fields,field_description:hr_holidays_natural_period.field_hr_leave_type__request_unit
msgid "Take Time Off in"
msgstr "Preneu-vos un temps lliure"

#. module: hr_holidays_natural_period
#: model:hr.leave.type,name:hr_holidays_natural_period.hr_leave_type_natural_day_test
msgid "Test Time Off (natural day)"
msgstr ""

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

#. module: hr_holidays_natural_period
#: model:ir.model,name:hr_holidays_natural_period.model_hr_leave_type
msgid "Time Off Type"
msgstr "Tipus de temps lliure"
47 changes: 47 additions & 0 deletions hr_holidays_natural_period/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_natural_period
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-04 13:12+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\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.17\n"

#. module: hr_holidays_natural_period
#: model:ir.model.fields.selection,name:hr_holidays_natural_period.selection__hr_leave_type__request_unit__natural_day
msgid "Natural day"
msgstr "Día natural"

#. module: hr_holidays_natural_period
#: model:ir.model,name:hr_holidays_natural_period.model_resource_calendar
msgid "Resource Working Time"
msgstr "Tiempo de Trabajo de Recursos"

#. module: hr_holidays_natural_period
#: model:ir.model.fields,field_description:hr_holidays_natural_period.field_hr_leave_type__request_unit
msgid "Take Time Off in"
msgstr "Coger ausencia en"

#. module: hr_holidays_natural_period
#: model:hr.leave.type,name:hr_holidays_natural_period.hr_leave_type_natural_day_test
msgid "Test Time Off (natural day)"
msgstr "Tiempo libre de prueba (día natural)"

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

#. module: hr_holidays_natural_period
#: model:ir.model,name:hr_holidays_natural_period.model_hr_leave_type
msgid "Time Off Type"
msgstr "Tipo de ausencia"
57 changes: 57 additions & 0 deletions hr_holidays_natural_period/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_natural_period
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-08-23 12:07+0000\n"
"Last-Translator: Bole <[email protected]>\n"
"Language-Team: none\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"
"X-Generator: Weblate 4.3.2\n"

#. module: hr_holidays_natural_period
#: model:ir.model.fields.selection,name:hr_holidays_natural_period.selection__hr_leave_type__request_unit__natural_day
msgid "Natural day"
msgstr "Cijeli dan"

#. module: hr_holidays_natural_period
#: model:ir.model,name:hr_holidays_natural_period.model_resource_calendar
msgid "Resource Working Time"
msgstr "Radno vrijeme resursa"

#. module: hr_holidays_natural_period
#: model:ir.model.fields,field_description:hr_holidays_natural_period.field_hr_leave_type__request_unit
msgid "Take Time Off in"
msgstr "Uzmi slobodno kao"

#. module: hr_holidays_natural_period
#: model:hr.leave.type,name:hr_holidays_natural_period.hr_leave_type_natural_day_test
msgid "Test Time Off (natural day)"
msgstr ""

#. module: hr_holidays_natural_period
#: model:ir.model,name:hr_holidays_natural_period.model_hr_leave
msgid "Time Off"
msgstr "Slobodno vrijeme"

#. module: hr_holidays_natural_period
#: model:ir.model,name:hr_holidays_natural_period.model_hr_leave_type
msgid "Time Off Type"
msgstr "Tip slobodnog vremena"

#~ msgid "Display Name"
#~ msgstr "Prikazani naziv"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Zadnje modificirano"
44 changes: 44 additions & 0 deletions hr_holidays_natural_period/i18n/hr_holidays_natural_period.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_natural_period
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_natural_period
#: model:ir.model.fields.selection,name:hr_holidays_natural_period.selection__hr_leave_type__request_unit__natural_day
msgid "Natural day"
msgstr ""

#. module: hr_holidays_natural_period
#: model:ir.model,name:hr_holidays_natural_period.model_resource_calendar
msgid "Resource Working Time"
msgstr ""

#. module: hr_holidays_natural_period
#: model:ir.model.fields,field_description:hr_holidays_natural_period.field_hr_leave_type__request_unit
msgid "Take Time Off in"
msgstr ""

#. module: hr_holidays_natural_period
#: model:hr.leave.type,name:hr_holidays_natural_period.hr_leave_type_natural_day_test
msgid "Test Time Off (natural day)"
msgstr ""

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

#. module: hr_holidays_natural_period
#: model:ir.model,name:hr_holidays_natural_period.model_hr_leave_type
msgid "Time Off Type"
msgstr ""
47 changes: 47 additions & 0 deletions hr_holidays_natural_period/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_holidays_natural_period
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-10 09:10+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\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_natural_period
#: model:ir.model.fields.selection,name:hr_holidays_natural_period.selection__hr_leave_type__request_unit__natural_day
msgid "Natural day"
msgstr "Giorno solare"

#. module: hr_holidays_natural_period
#: model:ir.model,name:hr_holidays_natural_period.model_resource_calendar
msgid "Resource Working Time"
msgstr "Orario lavoro risorsa"

#. module: hr_holidays_natural_period
#: model:ir.model.fields,field_description:hr_holidays_natural_period.field_hr_leave_type__request_unit
msgid "Take Time Off in"
msgstr "Prendi ferie in"

#. module: hr_holidays_natural_period
#: model:hr.leave.type,name:hr_holidays_natural_period.hr_leave_type_natural_day_test
msgid "Test Time Off (natural day)"
msgstr "Testa ferie (giorno solare)"

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

#. module: hr_holidays_natural_period
#: model:ir.model,name:hr_holidays_natural_period.model_hr_leave_type
msgid "Time Off Type"
msgstr "Tipo di ferie"
5 changes: 5 additions & 0 deletions hr_holidays_natural_period/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from . import hr_leave_type
from . import hr_leave
from . import resource_calendar
from . import hr_leave_allocation
from . import hr_employee
Loading

0 comments on commit 9851c50

Please sign in to comment.