odoo18/addons_extensions/hr_recruitment_extended/data/mail_template.xml

42 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record id="template_recruitment_deadline_alert" model="mail.template">
<field name="name">Recruitment Deadline Alert</field>
<field name="model_id" ref="hr.model_hr_job"/>
<field name="email_from">{{ object.company_id.email or user.email_formatted }}</field>
<field name="email_to">{{ object.user_id.email }}
</field>
<field name="subject">Reminder: Recruitment Process Ending Soon - {{ object.name }}</field>
<field name="description">Notification sent to recruiters when a job's recruitment deadline is approaching.</field>
<field name="body_html" type="html">
<t t-set="user_names" t-value="', '.join(object.user_id.mapped('name')) if object.user_id else 'Recruiter'"/>
<t t-set="location_names" t-value="', '.join(object.locations.mapped('name')) if object.locations else 'N/A'"/>
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;">
Dear <t t-esc="user_names">Recruiter</t>,
<br /><br />
This is a friendly reminder that the recruitment process for the position
<strong><t t-esc="object.name or ''">Job Title</t></strong> is approaching its end:
<ul>
<li><strong>Job Position:</strong> <t t-esc="object.name or ''">Job Name</t></li>
<li><strong>Target End Date:</strong> <t t-esc="object.target_to or ''">End Date</t></li>
<li><strong>Location(s):</strong> <t t-esc="location_names">Locations</t></li>
</ul>
<br />
Please ensure all recruitment activities are completed before the deadline.
<br /><br />
<a t-att-href="'%s/web#id=%d&amp;model=hr.job&amp;view_type=form' % (object.env['ir.config_parameter'].sudo().get_param('web.base.url'), object.id)" target="_blank">
Click here to view the job details.
</a>
<br /><br />
Regards,<br />
<t t-esc="user.name or 'System Admin'">System Admin</t>
</p>
</div>
</field>
<field name="auto_delete" eval="True"/>
</record>
</data>
</odoo>