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} + +
+