-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] hr_attendance_resume_holidays: In object "Hours imputations res…
…ume" new fields: leave type, leave, and holidays hours.
- Loading branch information
1 parent
a9abc71
commit fb0224c
Showing
11 changed files
with
565 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
============================= | ||
Hr attendance resume holidays | ||
============================= | ||
|
||
* In object "Hours imputations resume" new fields: leave type, leave, and | ||
holidays hours. | ||
* If the employee has absences, and the day of the absence is not in | ||
"Hours imputations resume", a row will be registered in the object | ||
"Hours imputations resume" with the information of the absence. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/avanzosc/hr-addons/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smash it by providing detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
* Ana Juaristi <anajuaristi@avanzosc.es> | ||
* Alfredo de la Fuente <alfredodelafuente@avanzosc.es> | ||
|
||
Do not contact contributors directly about support or help with technical issues. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Copyright 2019 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2019 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
{ | ||
"name": "Hr Attendance Resume Holidays", | ||
"version": "12.0.1.0.0", | ||
"license": "AGPL-3", | ||
"depends": [ | ||
"hr_attendance_resume_absences", | ||
"hr_holidays", | ||
], | ||
"author": "AvanzOSC", | ||
"website": "http://www.avanzosc.es", | ||
"category": "Human Resources", | ||
"data": [ | ||
"views/hr_attendance_resume_view.xml", | ||
"views/hr_leave_report_view.xml", | ||
], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2019 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
from odoo import fields, _ | ||
|
||
|
||
def _catch_dayofweek(date): | ||
day = str(date.weekday()) | ||
if day == '0': | ||
return _('Monday') | ||
if day == '1': | ||
return _('Tuesday') | ||
if day == '2': | ||
return _('Wednesday') | ||
if day == '3': | ||
return _('Thursday') | ||
if day == '4': | ||
return _('Friday') | ||
if day == '5': | ||
return _('Saturday') | ||
if day == '6': | ||
return _('Sunday') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_attendance_resume_holidays | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0+e\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-11-18 09:05+0000\n" | ||
"PO-Revision-Date: 2019-11-18 09:05+0000\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_attendance_resume_holidays | ||
#: model:ir.model,name:hr_attendance_resume_holidays.model_hr_attendance | ||
msgid "Attendance" | ||
msgstr "Asistencia" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model_terms:ir.actions.act_window,help:hr_attendance_resume_holidays.action_open_hr_leave_report_from_manager | ||
msgid "Create a new leave request" | ||
msgstr "Crear una nueva petición de ausencia" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_attendance_resume__created_from_holidays | ||
msgid "Created from holidays" | ||
msgstr "Creado desde vacaciones" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_leave__date_to | ||
msgid "End Date" | ||
msgstr "Fecha finalización" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:17 | ||
#, python-format | ||
msgid "Friday" | ||
msgstr "Viernes" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_attendance_resume__holiday_hours | ||
msgid "Holiday hours" | ||
msgstr "Horas vacaciones" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model,name:hr_attendance_resume_holidays.model_hr_leave | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_attendance_resume__leave_id | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_resume_holidays.hr_attendance_resume_view_search | ||
msgid "Leave" | ||
msgstr "Ausencia" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_attendance_resume__holiday_status_id | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_resume_holidays.hr_attendance_resume_view_search | ||
msgid "Leave type" | ||
msgstr "Tipo ausencia" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.actions.act_window,name:hr_attendance_resume_holidays.action_open_hr_leave_report_from_manager | ||
msgid "Leaves Summary" | ||
msgstr "Resumen de ausencias" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:9 | ||
#, python-format | ||
msgid "Monday" | ||
msgstr "Lunes" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:19 | ||
#, python-format | ||
msgid "Saturday" | ||
msgstr "Sábado" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_leave__date_from | ||
msgid "Start Date" | ||
msgstr "Fecha de inicio" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.ui.menu,name:hr_attendance_resume_holidays.menu_hr_leave_report_from_manager | ||
msgid "Summary" | ||
msgstr "Resumen" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:21 | ||
#, python-format | ||
msgid "Sunday" | ||
msgstr "Domingo" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_attendance_resume__theoretical_time_final | ||
msgid "Theoretical time" | ||
msgstr "Tiempo teorico" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:15 | ||
#, python-format | ||
msgid "Thursday" | ||
msgstr "Jueves" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:11 | ||
#, python-format | ||
msgid "Tuesday" | ||
msgstr "Martes" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:13 | ||
#, python-format | ||
msgid "Wednesday" | ||
msgstr "Miércoles" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model,name:hr_attendance_resume_holidays.model_hr_attendance_resume | ||
msgid "hr.attendance.resume" | ||
msgstr "" | ||
|
122 changes: 122 additions & 0 deletions
122
hr_attendance_resume_holidays/i18n/hr_attendance_resume_holidays.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_attendance_resume_holidays | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0+e\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-11-18 09:04+0000\n" | ||
"PO-Revision-Date: 2019-11-18 09:04+0000\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_attendance_resume_holidays | ||
#: model:ir.model,name:hr_attendance_resume_holidays.model_hr_attendance | ||
msgid "Attendance" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model_terms:ir.actions.act_window,help:hr_attendance_resume_holidays.action_open_hr_leave_report_from_manager | ||
msgid "Create a new leave request" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_attendance_resume__created_from_holidays | ||
msgid "Created from holidays" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_leave__date_to | ||
msgid "End Date" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:17 | ||
#, python-format | ||
msgid "Friday" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_attendance_resume__holiday_hours | ||
msgid "Holiday hours" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model,name:hr_attendance_resume_holidays.model_hr_leave | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_attendance_resume__leave_id | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_resume_holidays.hr_attendance_resume_view_search | ||
msgid "Leave" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_attendance_resume__holiday_status_id | ||
#: model_terms:ir.ui.view,arch_db:hr_attendance_resume_holidays.hr_attendance_resume_view_search | ||
msgid "Leave type" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.actions.act_window,name:hr_attendance_resume_holidays.action_open_hr_leave_report_from_manager | ||
msgid "Leaves Summary" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:9 | ||
#, python-format | ||
msgid "Monday" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:19 | ||
#, python-format | ||
msgid "Saturday" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_leave__date_from | ||
msgid "Start Date" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.ui.menu,name:hr_attendance_resume_holidays.menu_hr_leave_report_from_manager | ||
msgid "Summary" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:21 | ||
#, python-format | ||
msgid "Sunday" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model.fields,field_description:hr_attendance_resume_holidays.field_hr_attendance_resume__theoretical_time_final | ||
msgid "Theoretical time" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:15 | ||
#, python-format | ||
msgid "Thursday" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:11 | ||
#, python-format | ||
msgid "Tuesday" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: code:addons/hr_attendance_resume_holidays/_common.py:13 | ||
#, python-format | ||
msgid "Wednesday" | ||
msgstr "" | ||
|
||
#. module: hr_attendance_resume_holidays | ||
#: model:ir.model,name:hr_attendance_resume_holidays.model_hr_attendance_resume | ||
msgid "hr.attendance.resume" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright 2019 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
from . import hr_attendance | ||
from . import hr_leave |
Oops, something went wrong.