odoo18/addons_extensions/requisitions/data/mail_templates.xml

284 lines
13 KiB
XML

<odoo>
<data>
<record id="mail_template_recruitment_requisition_notification" model="mail.template">
<field name="name">HR Requisition: Notification</field>
<field name="model_id" ref="requisitions.model_recruitment_requisition"/>
<field name="email_from">{{ object.requested_by.email_formatted or user.email_formatted }}</field>
<field name="email_to">{{ object.hr_manager_id.email }}</field>
<field name="subject">New Requisition Submitted: {{ object.name }}</field>
<field name="description">Notification sent to HR Manager when a new requisition is submitted.</field>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;">
Dear <t t-out="object.hr_manager_id.name or ''">John Doe</t>,
<br/>
<br/>
A new requisition has been submitted for your review:
<ul>
<li>
<strong>Requisition Name:</strong>
<t t-out="object.name or ''">New</t>
</li>
<li>
<strong>Position Title:</strong>
<t t-out="object.position_title or ''">Sales Manager</t>
</li>
<li>
<strong>Number of Positions:</strong>
<t t-out="object.number_of_positions or 0">3</t>
</li>
<li>
<strong>Requested By:</strong>
<t t-out="object.requested_by.name or ''">Emily Clark</t>
</li>
<li>
<strong>Requested On:</strong>
<t t-out="object.requested_on or ''">2024-12-31</t>
</li>
</ul>
<br/>
<t t-if="object.notes">
<strong>Notes:</strong>
<t t-out="object.notes or ''">Requirement</t>
<br/>
</t>
<br/>
Please <a
t-att-href="'%s/web#id=%d&amp;model=recruitment.requisition&amp;view_type=form' % (object.env['ir.config_parameter'].sudo().get_param('web.base.url'), object.id)"
target="_blank">click here
</a> to view the requisition details.
<br/>
<br/>
Regards,
<br/>
<t t-out="object.requested_by.name or ''">Emily Clark</t>
</p>
</div>
</field>
<field name="auto_delete" eval="True"/>
</record>
<record id="mail_template_recruitment_requisition_cancellation" model="mail.template">
<field name="name">Recruitment Requisition Cancellation</field>
<field name="model_id" ref="requisitions.model_recruitment_requisition"/>
<field name="email_from">{{ object.requested_by.email_formatted or user.email_formatted }}</field>
<field name="email_to">{{ object.hr_manager_id.email }}</field>
<field name="subject">Requisition Cancelled: {{ object.name }}</field>
<field name="body_html" type="html">
<div>
<p>Dear <t t-out="object.hr_manager_id.name or ''">HR Manager</t>,
</p>
<p>The requisition
<strong>
<t t-out="object.name or ''">New</t>
</strong>
has been cancelled for the following reason:
</p>
<p>
<t t-out="object.notes or 'No reason provided.'"/>
</p>
<p>
You can view the requisition details by clicking the link below:
<br/>
<a t-att-href="'/web#id=%d&amp;model=recruitment.requisition&amp;view_type=form' % object.id"
style="color: #1a73e8; text-decoration: none;">
View Requisition
</a>
</p>
<p>Regards,</p>
<p>
<t t-out="object.requested_by.name or ''">Requested By</t>
</p>
</div>
</field>
</record>
<record id="mail_template_recruitment_requisition_finance" model="mail.template">
<field name="name">Recruitment Requisition: Sent to Finance</field>
<field name="model_id" ref="requisitions.model_recruitment_requisition"/>
<field name="email_from">{{ object.hr_manager_id.email_formatted or user.email_formatted }}</field>
<field name="email_to">{{ object.finance_manager_id.email }}</field>
<field name="subject">Requisition Awaiting Finance Approval: {{ object.name }}</field>
<field name="body_html" type="html">
<div>
<p>Dear
<t t-out="object.finance_manager_id.name"/>
,
</p>
<p>The following recruitment requisition has been reviewed by HR and is now awaiting your
approval:
</p>
<ul>
<li>
<strong>Requisition:</strong>
<t t-out="object.name"/>
</li>
<li>
<strong>Position:</strong>
<t t-out="object.job_id.name"/>
</li>
<li>
<strong>Positions Required:</strong>
<t t-out="object.number_of_positions"/>
</li>
<li>
<strong>Requested By:</strong>
<t t-out="object.requested_by.name"/>
</li>
</ul>
<p>
<a t-att-href="'%s/web#id=%d&amp;model=recruitment.requisition&amp;view_type=form' % (
object.env['ir.config_parameter'].sudo().get_param('web.base.url'), object.id)"
target="_blank">
View Requisition
</a>
</p>
<p>Regards,<br/>HR Team
</p>
</div>
</field>
</record>
<record id="mail_template_recruitment_requisition_final" model="mail.template">
<field name="name">Recruitment Requisition: Finance Approved</field>
<field name="model_id" ref="requisitions.model_recruitment_requisition"/>
<field name="email_from">{{ object.finance_manager_id.email_formatted or user.email_formatted }}</field>
<field name="email_to">{{ object.hr_manager_id.email }}</field>
<field name="subject">Finance Approved: {{ object.name }}</field>
<field name="body_html" type="html">
<div>
<p>Dear
<t t-out="object.hr_manager_id.name"/>
,
</p>
<p>The finance team has approved the following recruitment requisition:</p>
<ul>
<li>
<strong>Requisition:</strong>
<t t-out="object.name"/>
</li>
<li>
<strong>Position:</strong>
<t t-out="object.job_id.name"/>
</li>
<li>
<strong>Finance Comments:</strong>
<t t-out="object.finance_notes or '—'"/>
</li>
</ul>
<p>Please proceed with final approval.</p>
<p>
<a t-att-href="'%s/web#id=%d&amp;model=recruitment.requisition&amp;view_type=form' % (
object.env['ir.config_parameter'].sudo().get_param('web.base.url'), object.id)"
target="_blank">
Review Requisition
</a>
</p>
<p>Regards,<br/>Finance Team
</p>
</div>
</field>
</record>
<record id="mail_template_recruitment_requisition_finance_reject" model="mail.template">
<field name="name">Recruitment Requisition: Finance Rejected</field>
<field name="model_id" ref="requisitions.model_recruitment_requisition"/>
<field name="email_from">{{ object.finance_manager_id.email_formatted or user.email_formatted }}</field>
<field name="email_to">{{ object.hr_manager_id.email }}</field>
<field name="subject">Finance Rejected: {{ object.name }}</field>
<field name="body_html" type="html">
<div>
<p>Dear
<t t-out="object.hr_manager_id.name"/>
,
</p>
<p>The finance team has Rejected the following recruitment requisition:</p>
<ul>
<li>
<strong>Requisition:</strong>
<t t-out="object.name"/>
</li>
<li>
<strong>Position:</strong>
<t t-out="object.job_id.name"/>
</li>
<li>
<strong>Finance Comments:</strong>
<t t-out="object.finance_notes or '—'"/>
</li>
</ul>
<p>
<a t-att-href="'%s/web#id=%d&amp;model=recruitment.requisition&amp;view_type=form' % (
object.env['ir.config_parameter'].sudo().get_param('web.base.url'), object.id)"
target="_blank">
Review Requisition
</a>
</p>
<p>Regards,<br/>Finance Team
</p>
</div>
</field>
</record>
<record id="mail_template_recruitment_requisition_jd" model="mail.template">
<field name="name">Recruitment Requisition: Approved &amp; JD Creation</field>
<field name="model_id" ref="requisitions.model_recruitment_requisition"/>
<field name="email_from">{{ user.email_formatted }}</field>
<field name="email_to">{{ object.assign_to.email }}</field>
<field name="subject">JD Creation Required: {{ object.name }}</field>
<field name="body_html" type="html">
<div>
<p>Dear
<t t-out="object.assign_to.name"/>
,
</p>
<p>The following recruitment requisition has received final approval.</p>
<ul>
<li>
<strong>Requisition:</strong>
<t t-out="object.name"/>
</li>
<li>
<strong>Position:</strong>
<t t-out="object.job_id.name"/>
</li>
</ul>
<p>Please proceed with Job Description creation.</p>
<p>
<a t-att-href="'%s/web#id=%d&amp;model=recruitment.requisition&amp;view_type=form' % (
object.env['ir.config_parameter'].sudo().get_param('web.base.url'), object.id)"
target="_blank">
Open Requisition
</a>
</p>
<p>Regards,<br/>HR Team
</p>
</div>
</field>
</record>
</data>
</odoo>