Skip to content
Closed
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
19 changes: 10 additions & 9 deletions hr_holidays_ux/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ Holidays UX

This module:

#. Splits time off records by month.
#. Adds a pre-approved stage for time off requests that require attachments. This allows managers to fully approve the time off once the employee uploads the required document.


#. Splits time off records by month: a request that spans several months is saved as one time off per month, both when it is created and when its dates are changed.
#. Adds a Pre-Approved stage for time off types that expect a supporting document. When a manager approves a request that has no document yet, it goes to Pre-Approved; once the employee uploads the document, the manager approves it for good.
#. Adds a Pre-Approved filter to the time off search view.

Installation
============
Expand All @@ -33,18 +32,20 @@ Configuration

To configure this module, you need to:

#. Nothing to configure
#. Go to Time Off > Configuration > Time Types and open a type.
#. Check Supporting Document Expected and then Pre Approved Instance.

Usage
=====

To use this module, you need to:

#. Go to ...
#. An employee requests time off of a type configured with Pre Approved Instance, without a document.
#. A Time Off Officer or the employee's time off manager approves it: the request goes to Pre-Approved.
#. The employee attaches the supporting document in the chatter of the request.
#. The officer or manager clicks Approve: the request is approved.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: http://runbot.adhoc.com.ar/
If the document is already attached when the request is approved, it skips Pre-Approved.

Credits
=======
Expand Down
6 changes: 3 additions & 3 deletions hr_holidays_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
"name": "Holidays UX",
"version": "19.0.1.1.0",
"version": "20.0.1.0.0",
"category": "Human Resources",
"sequence": 14,
"summary": "Split time off records by month",
Expand All @@ -32,11 +32,11 @@
],
"data": [
"data/ir_actions_server.xml",
"views/hr_leave_type_views.xml",
"views/hr_work_entry_type_views.xml",
"views/hr_leave_views.xml",
],
"demo": [],
"installable": False,
"installable": True,
"auto_install": False,
"application": False,
}
112 changes: 99 additions & 13 deletions hr_holidays_ux/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 19.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-25 16:07+0000\n"
"PO-Revision-Date: 2026-06-30 18:54+0000\n"
"POT-Creation-Date: 2026-10-15 18:52+0000\n"
"PO-Revision-Date: 2026-10-15 18:52+0000\n"
"Last-Translator: BAF <[email protected]>\n"
"Language-Team: Spanish <https://translation.dev-adhoc.com/projects/hr-19-0/"
"hr-19-0-hr_holidays_ux/es/>\n"
Expand All @@ -22,6 +22,79 @@ msgstr ""
" ? 1 : 2);\n"
"X-Generator: Weblate 5.10.4\n"

#. module: hr_holidays_ux
#: model:ir.module.module,description:base.module_hr_holidays_ux
msgid ""
".. |company| replace:: ADHOC SA\n"
"\n"
".. |company_logo| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-logo.png\n"
" :alt: ADHOC SA\n"
" :target: https://www.adhoc.com.ar\n"
"\n"
".. |icon| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-icon.png\n"
"\n"
".. image:: https://img.shields.io/badge/license-AGPL--3-blue.png\n"
" :target: https://www.gnu.org/licenses/agpl\n"
" :alt: License: AGPL-3\n"
"\n"
"============\n"
"Holidays UX\n"
"============\n"
"\n"
"This module:\n"
"\n"
"#. Splits time off records by month: a request that spans several months is saved as one time off per month, both when it is created and when its dates are changed.\n"
"#. Adds a Pre-Approved stage for time off types that expect a supporting document. When a manager approves a request that has no document yet, it goes to Pre-Approved; once the employee uploads the document, the manager approves it for good.\n"
"#. Adds a Pre-Approved filter to the time off search view.\n"
"\n"
"Installation\n"
"============\n"
"\n"
"To install this module, you need to:\n"
"\n"
"#. Only need to install the module\n"
"\n"
"Configuration\n"
"=============\n"
"\n"
"To configure this module, you need to:\n"
"\n"
"#. Go to Time Off > Configuration > Time Types and open a type.\n"
"#. Check Supporting Document Expected and then Pre Approved Instance.\n"
"\n"
"Usage\n"
"=====\n"
"\n"
"To use this module, you need to:\n"
"\n"
"#. An employee requests time off of a type configured with Pre Approved Instance, without a document.\n"
"#. A Time Off Officer or the employee's time off manager approves it: the request goes to Pre-Approved.\n"
"#. The employee uploads the supporting document on the request.\n"
"#. The officer or manager clicks Approve: the request is approved.\n"
"\n"
"If the document is already attached when the request is approved, it skips Pre-Approved.\n"
"\n"
"Credits\n"
"=======\n"
"\n"
"Images\n"
"------\n"
"\n"
"* |company| |icon|\n"
"\n"
"Contributors\n"
"------------\n"
"\n"
"Maintainer\n"
"----------\n"
"\n"
"|company_logo|\n"
"\n"
"This module is maintained by the |company|.\n"
"\n"
"To contribute to this module, please visit https://www.adhoc.com.ar.\n"
msgstr ""

#. module: hr_holidays_ux
#: model_terms:ir.ui.view,arch_db:hr_holidays_ux.hr_leave_view_form_ux
msgid "Approve"
Expand All @@ -31,7 +104,7 @@ msgstr "Aprobar"
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_leave__display_name
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_leave_allocation__display_name
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_leave_allocation_generate_multi_wizard__display_name
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_leave_type__display_name
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_work_entry_type__display_name
msgid "Display Name"
msgstr "Nombre para mostrar"

Expand All @@ -46,11 +119,16 @@ msgstr "Generar asignaciones de vacaciones para varios empleados"
msgid "Generated Allocations"
msgstr "Vacaciones Generadas"

#. module: hr_holidays_ux
#: model:ir.module.module,shortdesc:base.module_hr_holidays_ux
msgid "Holidays UX"
msgstr "Ausencias UX"

#. module: hr_holidays_ux
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_leave__id
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_leave_allocation__id
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_leave_allocation_generate_multi_wizard__id
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_leave_type__id
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_work_entry_type__id
msgid "ID"
msgstr "ID"

Expand All @@ -63,8 +141,8 @@ msgstr ""
"validada."

#. module: hr_holidays_ux
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_leave_type__pre_approved_instance
#: model_terms:ir.ui.view,arch_db:hr_holidays_ux.edit_holiday_status_form_ux
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_work_entry_type__pre_approved_instance
#: model_terms:ir.ui.view,arch_db:hr_holidays_ux.hr_work_entry_type_view_form_ux
msgid "Pre Approved Instance"
msgstr "Instancia Preaprobada"

Expand All @@ -77,7 +155,12 @@ msgstr "Preaprobado"
#. module: hr_holidays_ux
#: model:ir.actions.server,name:hr_holidays_ux.action_reset_allocation_to_confirm
msgid "Reset to \"To Approve\""
msgstr ""
msgstr "Volver a \"Por aprobar\""

#. module: hr_holidays_ux
#: model:ir.module.module,summary:base.module_hr_holidays_ux
msgid "Split time off records by month"
msgstr "Divide las ausencias por mes"

#. module: hr_holidays_ux
#: model:ir.model.fields,field_description:hr_holidays_ux.field_hr_leave__state
Expand All @@ -91,9 +174,12 @@ msgid ""
"The following allocations already have leaves taken and cannot be reset:\n"
"%s"
msgstr ""
"Las siguientes asignaciones ya tienen ausencias tomadas y no se pueden "
"restablecer:\n"
"%s"

#. module: hr_holidays_ux
#: model:ir.model.fields,help:hr_holidays_ux.field_hr_leave_type__pre_approved_instance
#: model:ir.model.fields,help:hr_holidays_ux.field_hr_work_entry_type__pre_approved_instance
msgid ""
"This instance is necessary when the supported document is added after the "
"leave"
Expand All @@ -104,14 +190,14 @@ msgstr ""
#. module: hr_holidays_ux
#: model:ir.model,name:hr_holidays_ux.model_hr_leave
msgid "Time Off"
msgstr "Ausencias"
msgstr "Vacaciones"

#. module: hr_holidays_ux
#: model:ir.model,name:hr_holidays_ux.model_hr_leave_allocation
msgid "Time Off Allocation"
msgstr ""
msgstr "Asignación de tiempo personal"

#. module: hr_holidays_ux
#: model:ir.model,name:hr_holidays_ux.model_hr_leave_type
msgid "Time Off Type"
msgstr "Tipo de ausencia"
#: model:ir.model,name:hr_holidays_ux.model_hr_work_entry_type
msgid "Time Type"
msgstr "Tipo de tiempo"
Loading
Loading