From 53fa8b53c6aa91728c2809a65ce72ecf2022c134 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Sat, 28 Oct 2023 08:38:34 +0200 Subject: [PATCH] *: Fix linters --- .../views/hr_holidays_public_view.xml | 2 +- .../data/mail_template_data.xml | 107 ++++++++++++++++++ 2 files changed, 108 insertions(+), 1 deletion(-) create mode 100644 hr_holidays_summary_email/data/mail_template_data.xml diff --git a/hr_holidays_public/views/hr_holidays_public_view.xml b/hr_holidays_public/views/hr_holidays_public_view.xml index 820279ea..39ddbc2c 100644 --- a/hr_holidays_public/views/hr_holidays_public_view.xml +++ b/hr_holidays_public/views/hr_holidays_public_view.xml @@ -14,7 +14,7 @@ hr.holidays.public.form hr.holidays.public -
+ diff --git a/hr_holidays_summary_email/data/mail_template_data.xml b/hr_holidays_summary_email/data/mail_template_data.xml new file mode 100644 index 00000000..a5fb8200 --- /dev/null +++ b/hr_holidays_summary_email/data/mail_template_data.xml @@ -0,0 +1,107 @@ + + + + Leaves Summary: Daily + + Daily Leaves Summary + ${object.work_email | safe} + ${object.company_id.partner_id.email_formatted | safe} + +
+

Dear ${object.name},

+
+

This is today's leave summary:

+
+ + + + + + + + % set timeoffs = ctx.get('time_offs', False) + % for data in timeoffs + % set d_from = data.format_hr_leave_summary_date() + % set d_to = data.format_hr_leave_summary_date(False) + + + + + + + % endfor +
EmployeeTime OffFromTo
${data.employee_id.name}${data.name or ''}${d_from}${d_to}
+
+
+ ${object.lang} + +
+ + Leaves Summary: Weekly + + Weekly Leaves Summary + ${object.work_email | safe} + ${object.company_id.partner_id.email_formatted | safe} + +
+

Dear ${object.name},

+
+

This is the leaves summary for this week:

+
+ + + + + + + + % set timeoffs = ctx.get('time_offs', False) + % for data in timeoffs + % set d_from = data.format_hr_leave_summary_date() + % set d_to = data.format_hr_leave_summary_date(False) + + + + + + + % endfor +
EmployeeTime OffFromTo
${data.employee_id.name}${data.name or ''}${d_from}${d_to}
+
+
+ ${object.lang} + +
+