4
4
#
5
5
msgid ""
6
6
msgstr ""
7
- "Project-Id-Version : Odoo Server 16.0\n "
7
+ "Project-Id-Version : Odoo Server 16.0+e \n "
8
8
"Report-Msgid-Bugs-To : \n "
9
- "POT-Creation-Date : 2024-02-05 13:18 +0000\n "
10
- "PO-Revision-Date : 2024-02-05 13:18 +0000\n "
9
+ "POT-Creation-Date : 2024-12-16 09:15 +0000\n "
10
+ "PO-Revision-Date : 2024-12-16 09:15 +0000\n "
11
11
"Last-Translator : \n "
12
12
"Language-Team : \n "
13
13
"MIME-Version : 1.0\n "
14
14
"Content-Type : text/plain; charset=UTF-8\n "
15
15
"Content-Transfer-Encoding : \n "
16
16
"Plural-Forms : \n "
17
17
18
- #. module: hr_workweek_reports
19
- #: model:mail.template,subject: hr_workweek_reports.hours_worked_email_template
20
- msgid ""
21
- "\n"
22
- " {{object.name}}'s weekly report of worked hours: {{object.current_workweek.date_start}} -> {{object.current_workweek.date_end}}\n"
23
- " "
24
- msgstr ""
25
- "\n"
26
- " Informe semanal de las horas trabajadas de {{object.name}}: {{object.current_workweek.date_start}} -> {{object.current_workweek.date_end}}\n"
27
- " "
28
-
29
18
#. module: hr_workweek_reports
30
19
#: model:mail.template,body_html: hr_workweek_reports.hours_worked_summary_email_template
31
20
msgid ""
@@ -50,7 +39,7 @@ msgid ""
50
39
" </tr>\n"
51
40
" </thead>\n"
52
41
" <tbody>\n"
53
- " <t t-foreach=\" request.env['hr.employee'].sudo().search([('resource_calendar_id', '=', calendar.id) ])\" t-as=\" employee\" >\n"
42
+ " <t t-foreach=\" ctx.get('employees_by_calendar').get( calendar.id, [ ])\" t-as=\" employee\" >\n"
54
43
" <tr style=\" text-align: left;\" >\n"
55
44
" <td>\n"
56
45
" <span t-field=\" employee.name\" ></span>\n"
@@ -124,7 +113,7 @@ msgstr ""
124
113
" </tr>\n"
125
114
" </thead>\n"
126
115
" <tbody>\n"
127
- " <t t-foreach=\" request.env['hr.employee'].sudo().search([('resource_calendar_id', '=', calendar.id) ])\" t-as=\" employee\" >\n"
116
+ " <t t-foreach=\" ctx.get('employees_by_calendar').get( calendar.id, [ ])\" t-as=\" employee\" >\n"
128
117
" <tr style=\" text-align: left;\" >\n"
129
118
" <td>\n"
130
119
" <span t-field=\" employee.name\" ></span>\n"
@@ -180,41 +169,63 @@ msgstr ""
180
169
#. module: hr_workweek_reports
181
170
#: model:mail.template,body_html: hr_workweek_reports.hours_worked_email_template
182
171
msgid ""
183
- "<p>Hello <t t-out=\" object.name\" />,</p>\n"
184
- " <p>This week, from <t t-out=\" object.current_workweek.date_start\" /> to <t t-out=\" object.current_workweek.date_end\" />,\n"
185
- " you have worked <t t-out=\" object.current_workweek.hours_worked\" /> hours of\n"
186
- " <t t-out=\" object.current_workweek.hours_to_work\" /></p>\n"
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"
187
178
"\n"
188
- " <p>Taking into account your past workweeks,\n"
189
- " <t t-if=\" object.hours_difference > 0\" >\n"
190
- " <span style=\" background-color: #ef9a9a\" > you still have to work <t t-out=\" abs(object.hours_difference)\" /> hours.</span>\n"
191
- " </t>\n"
192
- " <t t-elif=\" object.hours_difference < 0\" >\n"
193
- " <span style=\" background-color: #93c2e5\" > you have <t t-out=\" abs(object.hours_difference)\" /> hours of overtime work.</span>\n"
194
- " </t>\n"
195
- " <t t-else=\"\" >\n"
196
- " <span style=\" background-color: #69f0ae\" > the difference between your worked and to work hours is <t t-out=\" abs(object.hours_difference)\" />.</span>\n"
197
- " </t>\n"
198
- " </p>\n"
199
- " "
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 > 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 < 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 > 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
+ " "
200
200
msgstr ""
201
- "<p>Hola <t t-out=\" object.name\" />,</p>\n"
202
- " <p>Esta semana, del <t t-out=\" object.current_workweek.date_start\" /> al <t t-out=\" object.current_workweek.date_end\" />,\n"
203
- " has trabajado <t t-out=\" object.current_workweek.hours_worked\" /> de\n"
204
- " <t t-out=\" object.current_workweek.hours_to_work\" /></p> horas.\n"
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"
205
207
"\n"
206
- " <p>Teniendo en cuenta tus anteriores semanas de trabajo,\n"
207
- " <t t-if=\" object.hours_difference > 0\" >\n"
208
- " <span style=\" background-color: #ef9a9a\" > todavía tienes que recuperar <t t-out=\" abs(object.hours_difference)\" /> horas.</span>\n"
209
- " </t>\n"
210
- " <t t-elif=\" object.hours_difference < 0\" >\n"
211
- " <span style=\" background-color: #93c2e5\" > has hecho <t t-out=\" abs(object.hours_difference)\" /> horas extra.</span>\n"
212
- " </t>\n"
213
- " <t t-else=\"\" >\n"
214
- " <span style=\" background-color: #69f0ae\" > la diferencia entre tus horas trabajadas y a trabajar es de <t t-out=\" abs(object.hours_difference)\" /> horas.</span>\n"
215
- " </t>\n"
216
- " </p>\n"
217
- " "
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 > 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 < 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 > 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
+ " "
218
229
219
230
#. module: hr_workweek_reports
220
231
#: model:ir.model,name: hr_workweek_reports.model_hr_employee
@@ -243,3 +254,14 @@ msgstr "Informe semanal de las horas trabajadas"
243
254
#: model:mail.template,subject: hr_workweek_reports.hours_worked_summary_email_template
244
255
msgid "Weekly summary report of worked hours"
245
256
msgstr "Informe semanal de todas las horas trabajadas"
257
+
258
+ #. module: hr_workweek_reports
259
+ #: model:mail.template,subject: hr_workweek_reports.hours_worked_email_template
260
+ msgid ""
261
+ "{{object.name}}'s weekly report of worked hours: "
262
+ "{{object.current_workweek.date_start}} → "
263
+ "{{object.current_workweek.date_end}}"
264
+ msgstr ""
265
+ "Informe semanal de las horas trabajadas de {{object.name}}: "
266
+ "{{object.current_workweek.date_start}} -> "
267
+ "{{object.current_workweek.date_end}}"
0 commit comments