Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cb_number_of_holidays_report/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Report para saber quien tiene vacaciones en un intervalo de tiempo.
4 changes: 4 additions & 0 deletions cb_number_of_holidays_report/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import report
from . import wizards
from . import models
from .hooks import pre_init_hook
20 changes: 20 additions & 0 deletions cb_number_of_holidays_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Cb Number Of Holidays Report",
"summary": """
Report para saber quien tiene vacaciones en un intervalo de tiempo""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "CreuBlanca",
"website": "https://github.com/tegin/cb-hr",
"depends": ["cb_hr_views"],
"data": [
"security/ir.model.access.csv",
"views/hr_leave_type.xml",
"report/holidays_count_report.xml",
"wizards/wizard_holidays_count.xml",
],
"pre_init_hook": "pre_init_hook",
}
15 changes: 15 additions & 0 deletions cb_number_of_holidays_report/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2020 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import logging

logger = logging.getLogger(__name__)


def pre_init_hook(cr):
cr.execute(
"""
ALTER TABLE hr_leave
ADD COLUMN IF NOT EXISTS count_in_holidays_report BOOLEAN DEFAULT TRUE
"""
)
175 changes: 175 additions & 0 deletions cb_number_of_holidays_report/i18n/cb_number_of_holidays_report.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * cb_number_of_holidays_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-05 10:35+0000\n"
"PO-Revision-Date: 2020-05-05 10:35+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: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.report_holidays_count
msgid "<strong>From</strong>:"
msgstr ""

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.report_holidays_count
msgid "<strong>To</strong>:"
msgstr ""

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Cancel"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__create_uid
msgid "Created by"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__create_date
msgid "Created on"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__date_from
msgid "Date From"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__date_to
msgid "Date To"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__department_id
msgid "Department"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_report_cb_number_of_holidays_report_report_holidays_count__display_name
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__display_name
msgid "Display Name"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__employee_ids
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.report_holidays_count
msgid "Employee"
msgstr ""

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Employees"
msgstr ""

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Filters"
msgstr ""

#. module: cb_number_of_holidays_report
#: code:addons/cb_number_of_holidays_report/report/holidays_count_report.py:14
#, python-format
msgid "Form content is missing, this report cannot be printed."
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.actions.report,name:cb_number_of_holidays_report.action_report_holidays_count
msgid "Holidays Count"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_report_cb_number_of_holidays_report_report_holidays_count__id
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__id
msgid "ID"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_report_cb_number_of_holidays_report_report_holidays_count____last_update
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count____last_update
msgid "Last Modified on"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__write_uid
msgid "Last Updated by"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__write_date
msgid "Last Updated on"
msgstr ""

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.report_holidays_count
msgid "Leaves Count"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__name
msgid "Name"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.actions.act_window,name:cb_number_of_holidays_report.wizard_holidays_count_act_window
msgid "Number Holidays Count"
msgstr ""

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.report_holidays_count
msgid "Number of Days"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.ui.menu,name:cb_number_of_holidays_report.wizard_holidays_count_menu
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Number of Holidays Count"
msgstr ""

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Print"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model,name:cb_number_of_holidays_report.model_report_cb_number_of_holidays_report_report_holidays_count
msgid "Report of number of holidays"
msgstr ""

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Search"
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__category_ids
msgid "Tag"
msgstr ""

#. module: cb_number_of_holidays_report
#: code:addons/cb_number_of_holidays_report/wizards/wizard_holidays_count.py:67
#, python-format
msgid "The start date must be anterior to the end date."
msgstr ""

#. module: cb_number_of_holidays_report
#: model:ir.model,name:cb_number_of_holidays_report.model_wizard_holidays_count
msgid "Wizard Report of number of holidays"
msgstr ""

#. module: cb_number_of_holidays_report
#: code:addons/cb_number_of_holidays_report/wizards/wizard_holidays_count.py:51
#, python-format
msgid "You have to select at least one Employee. And try again."
msgstr ""

176 changes: 176 additions & 0 deletions cb_number_of_holidays_report/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * cb_number_of_holidays_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-05 10:35+0000\n"
"PO-Revision-Date: 2020-05-05 12:37+0200\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"Language: es\n"
"X-Generator: Poedit 2.0.6\n"

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.report_holidays_count
msgid "<strong>From</strong>:"
msgstr "<strong>From</strong>:"

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.report_holidays_count
msgid "<strong>To</strong>:"
msgstr "<strong>Hasta</strong>:"

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Cancel"
msgstr "Cancelar"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__create_date
msgid "Created on"
msgstr "Creado el"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__date_from
msgid "Date From"
msgstr "Desde"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__date_to
msgid "Date To"
msgstr "Hasta"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__department_id
msgid "Department"
msgstr "Departamento"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_report_cb_number_of_holidays_report_report_holidays_count__display_name
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__employee_ids
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.report_holidays_count
msgid "Employee"
msgstr "Empleado"

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Employees"
msgstr "Empleados"

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Filters"
msgstr "Filtros"

#. module: cb_number_of_holidays_report
#: code:addons/cb_number_of_holidays_report/report/holidays_count_report.py:14
#, python-format
msgid "Form content is missing, this report cannot be printed."
msgstr "Form content is missing, this report cannot be printed."

#. module: cb_number_of_holidays_report
#: model:ir.actions.report,name:cb_number_of_holidays_report.action_report_holidays_count
msgid "Holidays Count"
msgstr "Número de Ausencias"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_report_cb_number_of_holidays_report_report_holidays_count__id
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__id
msgid "ID"
msgstr "ID"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_report_cb_number_of_holidays_report_report_holidays_count____last_update
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count____last_update
msgid "Last Modified on"
msgstr "Última modificación en"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__write_date
msgid "Last Updated on"
msgstr "Última actualización el"

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.report_holidays_count
msgid "Leaves Count"
msgstr "Número de Ausencias"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__name
msgid "Name"
msgstr "Nombre"

#. module: cb_number_of_holidays_report
#: model:ir.actions.act_window,name:cb_number_of_holidays_report.wizard_holidays_count_act_window
msgid "Number Holidays Count"
msgstr "Número de Ausencias"

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.report_holidays_count
msgid "Number of Days"
msgstr "Número de días"

#. module: cb_number_of_holidays_report
#: model:ir.ui.menu,name:cb_number_of_holidays_report.wizard_holidays_count_menu
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Number of Holidays Count"
msgstr "Número de Ausencias"

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Print"
msgstr "Imprimir"

#. module: cb_number_of_holidays_report
#: model:ir.model,name:cb_number_of_holidays_report.model_report_cb_number_of_holidays_report_report_holidays_count
msgid "Report of number of holidays"
msgstr "Informe de número de ausencias"

#. module: cb_number_of_holidays_report
#: model_terms:ir.ui.view,arch_db:cb_number_of_holidays_report.wizard_holidays_count_form_view
msgid "Search"
msgstr "Búsqueda"

#. module: cb_number_of_holidays_report
#: model:ir.model.fields,field_description:cb_number_of_holidays_report.field_wizard_holidays_count__category_ids
msgid "Tag"
msgstr "Etiqueta"

#. module: cb_number_of_holidays_report
#: code:addons/cb_number_of_holidays_report/wizards/wizard_holidays_count.py:67
#, python-format
msgid "The start date must be anterior to the end date."
msgstr "La fecha inicial debe ser anterior a la final."

#. module: cb_number_of_holidays_report
#: model:ir.model,name:cb_number_of_holidays_report.model_wizard_holidays_count
msgid "Wizard Report of number of holidays"
msgstr "Wizard Report of number of holidays"

#. module: cb_number_of_holidays_report
#: code:addons/cb_number_of_holidays_report/wizards/wizard_holidays_count.py:51
#, python-format
msgid "You have to select at least one Employee. And try again."
msgstr "Se debe seleccionar al menos un empleado"
2 changes: 2 additions & 0 deletions cb_number_of_holidays_report/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import hr_leave_type
from . import hr_leave
Loading
Loading