From bd131d782377132324d7017db8776650db9d3719 Mon Sep 17 00:00:00 2001 From: Jorge Saura Date: Thu, 10 Aug 2023 10:08:50 +0200 Subject: [PATCH] Field rest_days added. This commit refs #27907 --- locale/es.po | 22 ++++++++++---------- tests/test_module.py | 2 +- view/calendar_form.xml | 5 +++-- workplace.py | 47 +++++++++++++++++++++++++++++++++++------- 4 files changed, 54 insertions(+), 22 deletions(-) diff --git a/locale/es.po b/locale/es.po index 6833ab1..db72761 100644 --- a/locale/es.po +++ b/locale/es.po @@ -95,9 +95,9 @@ msgctxt "field:staff.calendar,city:" msgid "City" msgstr "Ciudad" -msgctxt "field:staff.calendar,rest_day:" -msgid "Rest Day" -msgstr "Día de Descanso" +msgctxt "field:staff.calendar,rest_days:" +msgid "Rest Days" +msgstr "Días de Descanso" msgctxt "field:staff.calendar,write_date:" msgid "Write Date" @@ -235,35 +235,35 @@ msgctxt "model:staff.workplace,name:" msgid "WorkPlace" msgstr "Centro de empleo" -msgctxt "selection:staff.calendar,rest_day:" +msgctxt "selection:staff.calendar,rest_days:" msgid "Monday" msgstr "Lunes" -msgctxt "selection:staff.calendar,rest_day:" +msgctxt "selection:staff.calendar,rest_days:" msgid "Tuesday" msgstr "Martes" -msgctxt "selection:staff.calendar,rest_day:" +msgctxt "selection:staff.calendar,rest_days:" msgid "Wednesday" msgstr "Miércoles" -msgctxt "selection:staff.calendar,rest_day:" +msgctxt "selection:staff.calendar,rest_days:" msgid "Thursday" msgstr "Jueves" -msgctxt "selection:staff.calendar,rest_day:" +msgctxt "selection:staff.calendar,rest_days:" msgid "Friday" msgstr "Viernes" -msgctxt "selection:staff.calendar,rest_day:" +msgctxt "selection:staff.calendar,rest_days:" msgid "Saturday" msgstr "Sábado" -msgctxt "selection:staff.calendar,rest_day:" +msgctxt "selection:staff.calendar,rest_days:" msgid "Sunday" msgstr "Domingo" -msgctxt "selection:staff.calendar,rest_day:" +msgctxt "selection:staff.calendar,rest_days:" msgid "" msgstr "" diff --git a/tests/test_module.py b/tests/test_module.py index e829723..16b6ccf 100644 --- a/tests/test_module.py +++ b/tests/test_module.py @@ -39,7 +39,7 @@ class StaffWorkplaceTestCase(ModuleTestCase): party.save() company = create_company() calendar = Calendar(name='Calendar 1', - year=2016, rest_day='7') + year=2016, rest_days='7') calendar.save() workplace = Workplace(name='Workplace 1', code='WP1') workplace.calendars = [calendar] diff --git a/view/calendar_form.xml b/view/calendar_form.xml index dc9cf5d..b004aa1 100644 --- a/view/calendar_form.xml +++ b/view/calendar_form.xml @@ -12,8 +12,9 @@