15 lines
1.1 KiB
XML
15 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="holidays_notification_template" model="mail.template">
|
|
<field name="name">HR holidays: Holidays start notification</field>
|
|
<field name="email_to">{{ object.holiday_status_id.responsible_employee_to_notify_id.work_email }}</field>
|
|
<field name="subject">Reminder of the holidays start</field>
|
|
<field name="model_id" ref="hr_holidays_ru.model_hr_leave"/>
|
|
<field name="lang">{{ object.holiday_status_id.responsible_employee_to_notify_id.lang }}</field>
|
|
<field name="body_html" type="html">
|
|
<p>Dear <t t-out="object.holiday_status_id.responsible_employee_to_notify_id.name or ''"/>,</p>
|
|
<p>A reminder that the employee <t t-out="object.employee_id.name"/> begins his vacation in <t t-out="object.holiday_status_id.days_before_holidays"/> days.</p>
|
|
<p>A vacation from <t t-out="object.date_from.strftime('%d.%m.%Y')"/> to <t t-out="object.date_to.strftime('%d.%m.%Y')"/>. Duration of holidays: <t t-out="(object.date_to.date() - object.date_from.date()).days + 1"/> day(s). </p>
|
|
</field>
|
|
</record>
|
|
</odoo> |