Skip to content

Commit f4286b7

Browse files
[FIX] translations
1 parent dd73a22 commit f4286b7

15 files changed

+35
-62
lines changed
-210 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

hr_workweek_reports/data/workweek_data.xml

-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
<field name="email_cc">{{object.coach_id.work_email}}</field>
1111
<field name="lang">{{object.user_id.partner_id.lang}}</field>
1212
<field name="body_html" type="html">
13-
<!-- <t t-set="hours_difference" t-value="hours_difference"/>
14-
<t t-set="hours_difference_str" t-value="hours_difference_str"/>
15-
<t t-set="current_workweek_hours_to_work" t-value="current_workweek_hours_to_work"/>
16-
<t t-set="current_workweek_hours_to_work_str" t-value="current_workweek_hours_to_work_str"/>
17-
<t t-set="current_workweek_hours_worked_str" t-value="current_workweek_hours_worked_str"/> -->
1813
<p>Hello <t t-out="object.name" />,</p>
1914
<p>This week, from <t
2015
t-out="object.current_workweek.date_start"

hr_workweek_reports/i18n/es.po

+35-57
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 16.0+e\n"
7+
"Project-Id-Version: Odoo Server 16.0\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2024-12-16 09:15+0000\n"
10-
"PO-Revision-Date: 2024-12-16 09:15+0000\n"
9+
"POT-Creation-Date: 2024-12-20 11:37+0000\n"
10+
"PO-Revision-Date: 2024-12-20 11:37+0000\n"
1111
"Last-Translator: \n"
1212
"Language-Team: \n"
1313
"MIME-Version: 1.0\n"
@@ -169,63 +169,41 @@ msgstr ""
169169
#. module: hr_workweek_reports
170170
#: model:mail.template,body_html:hr_workweek_reports.hours_worked_email_template
171171
msgid ""
172-
"<t t-set=\"hours_difference\" t-value=\"ctx.get('hours_difference', hours_difference)\"></t>\n"
173-
" <t t-set=\"hours_difference_str\" t-value=\"ctx.get('hours_difference_str', hours_difference_str)\"></t>\n"
174-
" <t t-set=\"current_workweek_hours_to_work\" t-value=\"ctx.get('current_workweek_hours_to_work', current_workweek_hours_to_work)\"></t>\n"
175-
" <t t-set=\"current_workweek_hours_to_work_str\" t-value=\"ctx.get('current_workweek_hours_to_work_str', current_workweek_hours_to_work_str)\"></t>\n"
176-
" <t t-set=\"current_workweek_hours_worked_str\" t-value=\"ctx.get('current_workweek_hours_worked_str', current_workweek_hours_worked_str)\"></t>\n"
177-
" <p>Hello <t t-out=\"object.name\"></t>,</p>\n"
172+
"<p>Hello <t t-out=\"object.name\"></t>,</p>\n"
173+
" <p>This week, from <t t-out=\"object.current_workweek.date_start\"></t> to <t t-out=\"object.current_workweek.date_end\"></t>,\n"
174+
" you have worked <t t-out=\"object.current_workweek.hours_worked\"></t> hours of\n"
175+
" <t t-out=\"object.current_workweek.hours_to_work\"></t></p>\n"
178176
"\n"
179-
" <p>This week, from <t t-out=\"object.current_workweek.date_start\"></t> to <t t-out=\"object.current_workweek.date_end\"></t>,\n"
180-
" you have worked <t t-out=\"current_workweek_hours_worked_str\"></t> hours of\n"
181-
" <t t-out=\"current_workweek_hours_to_work_str\"></t></p>\n"
182-
"\n"
183-
" <p>Taking into account your past workweeks,\n"
184-
" <t t-if=\"hours_difference &gt; 0\">\n"
185-
" <span style=\"background-color: #ef9a9a\"> you still have to work <t t-out=\"hours_difference_str\"></t> hours.</span>\n"
186-
" </t>\n"
187-
" <t t-elif=\"hours_difference &lt; 0\">\n"
188-
" <span style=\"background-color: #93c2e5\"> you have <t t-out=\"hours_difference_str\"></t> hours of overtime work.</span>\n"
189-
" </t>\n"
190-
" <t t-else=\"\">\n"
191-
" <span style=\"background-color: #69f0ae\"> the difference between your worked and to work hours is <t t-out=\"hours_difference_str\"></t>.</span>\n"
192-
" </t>\n"
193-
" </p>\n"
194-
" <p>\n"
195-
" <t t-if=\"object.imputable_daily_fail &gt; 0\">\n"
196-
" <span style=\"background-color: #ef9a9a\"> You have not imputed <t t-out=\"object.imputable_daily_fail\"></t> day(s) this week.</span>\n"
197-
" </t>\n"
198-
" </p>\n"
199-
" "
177+
" <p>Taking into account your past workweeks,\n"
178+
" <t t-if=\"object.hours_difference &gt; 0\">\n"
179+
" <span style=\"background-color: #ef9a9a\"> you still have to work <t t-out=\"abs(object.hours_difference)\"></t> hours.</span>\n"
180+
" </t>\n"
181+
" <t t-elif=\"object.hours_difference &lt; 0\">\n"
182+
" <span style=\"background-color: #93c2e5\"> you have <t t-out=\"abs(object.hours_difference)\"></t> hours of overtime work.</span>\n"
183+
" </t>\n"
184+
" <t t-else=\"\">\n"
185+
" <span style=\"background-color: #69f0ae\"> the difference between your worked and to work hours is <t t-out=\"abs(object.hours_difference)\"></t>.</span>\n"
186+
" </t>\n"
187+
" </p>\n"
188+
" "
200189
msgstr ""
201-
"<t t-set=\"hours_difference\" t-value=\"ctx.get('hours_difference', hours_difference)\"></t>\n"
202-
" <t t-set=\"hours_difference_str\" t-value=\"ctx.get('hours_difference_str', hours_difference_str)\"></t>\n"
203-
" <t t-set=\"current_workweek_hours_to_work\" t-value=\"ctx.get('current_workweek_hours_to_work', current_workweek_hours_to_work)\"></t>\n"
204-
" <t t-set=\"current_workweek_hours_to_work_str\" t-value=\"ctx.get('current_workweek_hours_to_work_str', current_workweek_hours_to_work_str)\"></t>\n"
205-
" <t t-set=\"current_workweek_hours_worked_str\" t-value=\"ctx.get('current_workweek_hours_worked_str', current_workweek_hours_worked_str)\"></t>\n"
206-
" <p>Hola <t t-out=\"object.name\"></t>,</p>\n"
190+
"<p>Hola <t t-out=\"object.name\"></t>,</p>\n"
191+
" <p>Esta semana, desde <t t-out=\"object.current_workweek.date_start\"></t> hasta <t t-out=\"object.current_workweek.date_end\"></t>,\n"
192+
" has trabajado <t t-out=\"object.current_workweek.hours_worked\"></t> horas de\n"
193+
" <t t-out=\"object.current_workweek.hours_to_work\"></t></p>\n"
207194
"\n"
208-
" <p>Esta semana, desde el <t t-out=\"object.current_workweek.date_start\"></t> hasta el <t t-out=\"object.current_workweek.date_end\"></t>,\n"
209-
" has trabajado <t t-out=\"current_workweek_hours_worked_str\"></t> horas de\n"
210-
" <t t-out=\"current_workweek_hours_to_work_str\"></t></p>\n"
211-
"\n"
212-
" <p>Teniendo en cuenta tus semanas anteriores,\n"
213-
" <t t-if=\"hours_difference &gt; 0\">\n"
214-
" <span style=\"background-color: #ef9a9a\"> aún tienes que trabajar <t t-out=\"hours_difference_str\"></t> horas.</span>\n"
215-
" </t>\n"
216-
" <t t-elif=\"hours_difference &lt; 0\">\n"
217-
" <span style=\"background-color: #93c2e5\"> tienes <t t-out=\"hours_difference_str\"></t> horas de trabajo extra.</span>\n"
218-
" </t>\n"
219-
" <t t-else=\"\">\n"
220-
" <span style=\"background-color: #69f0ae\"> la diferencia entre las horas trabajadas y las horas que deberías trabajar es <t t-out=\"hours_difference_str\"></t>.</span>\n"
221-
" </t>\n"
222-
" </p>\n"
223-
" <p>\n"
224-
" <t t-if=\"object.imputable_daily_fail &gt; 0\">\n"
225-
" <span style=\"background-color: #ef9a9a\"> No has imputado <t t-out=\"object.imputable_daily_fail\"></t> dia(s) esta semana.</span>\n"
226-
" </t>\n"
227-
" </p>\n"
228-
" "
195+
" <p>Teniendo en cuenta tus pasadas semanas,\n"
196+
" <t t-if=\"object.hours_difference &gt; 0\">\n"
197+
" <span style=\"background-color: #ef9a9a\"> todavía tienes que trabajar <t t-out=\"abs(object.hours_difference)\"></t> horas.</span>\n"
198+
" </t>\n"
199+
" <t t-elif=\"object.hours_difference &lt; 0\">\n"
200+
" <span style=\"background-color: #93c2e5\"> tienes <t t-out=\"abs(object.hours_difference)\"></t> horas extra.</span>\n"
201+
" </t>\n"
202+
" <t t-else=\"\">\n"
203+
" <span style=\"background-color: #69f0ae\"> la diferencia entre tus horas trabajadas y a trabajar es de <t t-out=\"abs(object.hours_difference)\"></t>.</span>\n"
204+
" </t>\n"
205+
" </p>\n"
206+
" "
229207

230208
#. module: hr_workweek_reports
231209
#: model:ir.model,name:hr_workweek_reports.model_hr_employee
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)