Skip to content
Merged
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
28 changes: 22 additions & 6 deletions hr_shift/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-19 09:53+0000\n"
"PO-Revision-Date: 2025-08-19 09:53+0000\n"
"POT-Creation-Date: 2026-04-17 10:23+0000\n"
"PO-Revision-Date: 2026-04-17 10:23+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -22,6 +22,17 @@ msgstr ""
msgid "%(day)s shifts of %(planning)s"
msgstr "Turnos del %(day)s para %(planning)s"

#. module: hr_shift
#: model:ir.model.fields,field_description:hr_shift.field_hr_shift_template__active
msgid "Active"
msgstr "Activo"

#. module: hr_shift
#: model_terms:ir.ui.view,arch_db:hr_shift.shift_template_form
#: model_terms:ir.ui.view,arch_db:hr_shift.shift_template_search
msgid "Archived"
msgstr "Archivado"

#. module: hr_shift
#: model:ir.model.fields.selection,name:hr_shift.selection__hr_shift_planning_line__state__assigned
msgid "Assigned"
Expand All @@ -35,7 +46,7 @@ msgstr "Asignación"
#. module: hr_shift
#: model:ir.model,name:hr_shift.model_hr_employee_base
msgid "Basic Employee"
msgstr "Empleado Básico"
msgstr "Empleado básico"

#. module: hr_shift
#: model_terms:ir.ui.view,arch_db:hr_shift.shift_planning_wizard_form
Expand Down Expand Up @@ -143,6 +154,11 @@ msgstr "Primer día de la semana"
msgid "Days Data"
msgstr "Datos del día"

#. module: hr_shift
#: model_terms:ir.ui.view,arch_db:hr_shift.res_config_settings_view_form
msgid "Default Working Week"
msgstr "Semana laboral por defecto"

#. module: hr_shift
#: model:ir.model.fields,field_description:hr_shift.field_hr_shift_planning__display_name
#: model:ir.model.fields,field_description:hr_shift.field_hr_shift_planning_line__display_name
Expand Down Expand Up @@ -222,8 +238,8 @@ msgstr "Generar"

#. module: hr_shift
#. odoo-javascript
#: code:addons/hr_shift/static/src/js/generate_planning.js:0
#: code:addons/hr_shift/static/src/js/generate_planning.js:0
#: code:addons/hr_shift/static/src/js/generate_planning.esm.js:0
#: code:addons/hr_shift/static/src/js/generate_planning.esm.js:0
#: code:addons/hr_shift/static/src/xml/generate_planning_views.xml:0
#, python-format
msgid "Generate Planning"
Expand Down Expand Up @@ -269,7 +285,7 @@ msgstr "Tipo de generación"
#. module: hr_shift
#: model_terms:ir.ui.view,arch_db:hr_shift.shift_planning_line_search
msgid "Group By"
msgstr ""
msgstr "Agrupar por"

#. module: hr_shift
#: model:ir.model.fields.selection,name:hr_shift.selection__hr_shift_planning_line__state__holiday
Expand Down
11 changes: 11 additions & 0 deletions hr_shift/i18n/hr_shift.pot
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ msgstr ""
msgid "%(day)s shifts of %(planning)s"
msgstr ""

#. module: hr_shift
#: model:ir.model.fields,field_description:hr_shift.field_hr_shift_template__active
msgid "Active"
msgstr ""

#. module: hr_shift
#: model_terms:ir.ui.view,arch_db:hr_shift.shift_template_form
#: model_terms:ir.ui.view,arch_db:hr_shift.shift_template_search
msgid "Archived"
msgstr ""

#. module: hr_shift
#: model:ir.model.fields.selection,name:hr_shift.selection__hr_shift_planning_line__state__assigned
msgid "Assigned"
Expand Down
1 change: 1 addition & 0 deletions hr_shift/models/shift_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class ShiftTemplate(models.Model):
help="This field is used in order to define in which timezone the employees "
"will work.",
)
active = fields.Boolean(default=True)

def _prepare_time(self):
def _parse_float_time(float_time):
Expand Down
19 changes: 19 additions & 0 deletions hr_shift/views/shift_template_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
<field name="arch" type="xml">
<form>
<sheet>
<field name="active" invisible="1" />
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
invisible="active"
/>
<group>
<group>
<field name="name" />
Expand Down Expand Up @@ -38,6 +45,18 @@
</tree>
</field>
</record>
<record id="shift_template_search" model="ir.ui.view">
<field name="model">hr.shift.template</field>
<field name="arch" type="xml">
<search>
<filter
string="Archived"
name="inactive"
domain="[('active','=',False)]"
/>
</search>
</field>
</record>
<record id="shift_template_action" model="ir.actions.act_window">
<field name="res_model">hr.shift.template</field>
<field name="view_mode">tree,form</field>
Expand Down
Loading