odoo18/addons_extensions/hr_recruitment_extended/data/mail_template.xml

425 lines
21 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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="model_hr_job_recruitment"/>
<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.job_id.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="font-family: Arial, sans-serif; font-size: 14px; color: #333; line-height: 1.5; padding: 20px;">
<p>Dear <t t-esc="user_names">Recruiter</t>,
</p>
<p>This is a friendly reminder that the recruitment process for the position
<strong>
<t t-esc="object.job_id.name or ''">Job Title</t>
</strong>
is approaching its end. Please find the details below:
</p>
<table style="width: 100%; border-collapse: collapse; margin-top: 10px;">
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;">
<strong>Job Position:</strong>
</td>
<td style="padding: 8px; border: 1px solid #ddd;">
<t t-esc="object.job_id.name or ''">Job Name</t>
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;">
<strong>Target End Date:</strong>
</td>
<td style="padding: 8px; border: 1px solid #ddd;">
<t t-esc="object.target_to or ''">End Date</t>
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;">
<strong>Location(s):</strong>
</td>
<td style="padding: 8px; border: 1px solid #ddd;">
<t t-esc="location_names">Locations</t>
</td>
</tr>
</table>
<p style="margin-top: 15px;">Please ensure all recruitment activities are completed before the
deadline.
</p>
<p style="margin-top: 15px;">
<a t-att-href="'%s/web#id=%d&amp;model=hr.job.recruitment&amp;view_type=form' % (object.env['ir.config_parameter'].sudo().get_param('web.base.url'), object.id)"
style="background-color: #007bff; color: #ffffff; padding: 10px 15px; text-decoration: none; border-radius: 5px; display: inline-block;"
target="_blank">
View Job Details
</a>
</p>
<p style="margin-top: 20px;">Best Regards,</p>
<p>
<t t-esc="user.name or 'System Admin'">System Admin</t>
</p>
</div>
</field>
<field name="auto_delete" eval="True"/>
</record>
<record id="email_template_second_application_form" model="mail.template">
<field name="name">Employee Salary &amp; Experience Form Request</field>
<field name="model_id" ref="hr_recruitment.model_hr_applicant"/>
<field name="email_from">{{ user.company_id.email or user.email_formatted }}</field>
<field name="email_to">{{ object.email_from }}</field>
<field name="subject">Action Required: Please Fill Out the Form</field>
<field name="description">
Request to employees to provide salary expectations, experience, and current offers.
</field>
<field name="body_html" type="html">
<t t-set="applicant_name" t-value="object.candidate_id.partner_name or 'Applicant'"/>
<t t-set="base_url" t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
<t t-set="form_url" t-value="base_url + '/hr_recruitment/second_application_form/%s' % object.id"/>
<div style="font-family: Arial, sans-serif; font-size: 14px; color: #333; padding: 20px; line-height: 1.6;">
<p>Dear
<strong>
<t t-esc="applicant_name">Applicant</t>
</strong>
,
</p>
<p>We hope you're doing well. Kindly take a few minutes to fill out the following form regarding:
</p>
<ul style="margin-left: 15px;">
<li>
<strong>Salary Expectations</strong>
</li>
<li>
<strong>Previous Work Experience</strong>
</li>
<li>
<strong>Current Job Offers (if any)</strong>
</li>
</ul>
<p>Click the button below to access the form:</p>
<p style="text-align: center; margin-top: 20px;">
<a t-att-href="form_url" target="_blank"
style="background-color: #007bff; color: #fff; padding: 10px 20px; text-decoration: none;
font-weight: bold; border-radius: 5px; display: inline-block;">
Fill Out the Form
</a>
</p>
<p>If you have any questions, feel free to reach out.</p>
<p>Best Regards,
<br/>
<strong>
<t t-esc="object.company_id.name or 'HR Team'">HR Team</t>
</strong>
</p>
</div>
</field>
<field name="auto_delete" eval="True"/>
</record>
<record id="email_template_second_application_submitted" model="mail.template">
<field name="name">Applicant Form Submission Notification</field>
<field name="model_id" ref="hr_recruitment.model_hr_applicant"/>
<field name="email_from">{{ user.company_id.email or user.email_formatted }}</field>
<field name="email_to">{{ object.user_id.email }}</field> <!-- Recruiter's Email -->
<field name="subject">New Submission: Applicant Salary &amp; Experience Form</field>
<field name="description">
Notification sent to recruiter when an applicant submits the form.
</field>
<field name="body_html" type="html">
<t t-set="recruiter_name" t-value="object.user_id.name or 'Recruiter'"/>
<t t-set="applicant_name" t-value="object.candidate_id.partner_name or 'Applicant'"/>
<t t-set="base_url" t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
<t t-set="applicant_url"
t-value="base_url + '/web#id=%s&amp;model=hr.applicant&amp;view_type=form' % object.id"/>
<div style="font-family: Arial, sans-serif; font-size: 14px; color: #333; padding: 20px; line-height: 1.6;">
<p>Dear
<strong>
<t t-esc="recruiter_name">Recruiter</t>
</strong>
,
</p>
<p>The applicant
<strong>
<t t-esc="applicant_name">Applicant</t>
</strong>
has submitted their additional details.
</p>
<p style="text-align: center; margin-top: 20px;">
<a t-att-href="applicant_url" target="_blank"
style="background-color: #007bff; color: #fff; padding: 10px 20px; text-decoration: none;
font-weight: bold; border-radius: 5px; display: inline-block;">
Review Application
</a>
</p>
<p>If you have any questions, please reach out.</p>
<p>Best Regards,
<br/>
<strong>
<t t-esc="object.company_id.name or 'HR Team'">HR Team</t>
</strong>
</p>
</div>
</field>
<field name="auto_delete" eval="True"/>
</record>
<record id="email_template_post_onboarding_form" model="mail.template">
<field name="name">Joining Formalities Notification</field>
<field name="model_id" ref="hr_recruitment.model_hr_applicant"/>
<field name="email_from">{{ user.company_id.email or user.email_formatted }}</field>
<field name="email_to">{{ object.email_from }}</field>
<field name="subject">Welcome Onboard | Joining Formalities | FTPROTECH</field>
<field name="description">
Notification sent to applicants with joining formalities details.
</field>
<field name="body_html" type="html">
<t t-set="applicant_name" t-value="object.candidate_id.partner_name or 'Applicant'"/>
<t t-if="object.employee_code">
<t t-set="employee_code" t-value="object.employee_code"/>
</t>
<div style="font-family: Arial, sans-serif; font-size: 14px; color: #333; padding: 20px; line-height: 1.6;">
<p>Dear
<strong>
<t t-esc="applicant_name">Applicant</t>
</strong>
,
</p>
<p>Welcome to the <strong>FTPROTECH</strong> family! 🎉
</p>
<p>We are excited to have you on board. Please take some time to complete the joining formalities on
your first day.
</p>
<t t-set="base_url"
t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
<t t-set="form_url"
t-value="base_url + '/FTPROTECH/JoiningForm/%s' % object.id"/>
<p style="text-align: center; margin-top: 20px;">
<a t-att-href="form_url" target="_blank"
style="background-color: #007bff; color: #fff; padding: 10px 20px; text-decoration: none;
font-weight: bold; border-radius: 5px; display: inline-block;">
Fill Out the Joining Form
</a>
</p>
<t t-if="object.employee_code">
<p>
<strong>Note Your Employee Code:</strong>
<t t-esc="employee_code"/>
(Mentioned in your offer letter)
</p>
</t>
<t t-if="ctx.get('personal_docs') or ctx.get('education_docs') or ctx.get('previous_employer_docs') or ctx.get('other_docs')">
<p>For HR records, please provide soft copies of the following documents:</p>
<!-- Personal Documents -->
<t t-if="ctx.get('personal_docs')">
<strong>Personal Documents:</strong>
<ul>
<t t-foreach="ctx.get('personal_docs')" t-as="doc">
<li t-esc="doc"/>
</t>
</ul>
</t>
<!-- Education Documents -->
<t t-if="ctx.get('education_docs')">
<strong>Education Documents:</strong>
<ul>
<t t-foreach="ctx.get('education_docs')" t-as="doc">
<li t-esc="doc"/>
</t>
</ul>
</t>
<!-- Previous Employer Documents -->
<t t-if="ctx.get('previous_employer_docs')">
<strong>Previous Employer Documents:</strong>
<ul>
<t t-foreach="ctx.get('previous_employer_docs')" t-as="doc">
<li t-esc="doc"/>
</t>
</ul>
</t>
<!-- Additional Documents -->
<t t-if="ctx.get('other_docs')">
<strong>Additional Documents:</strong>
<ul>
<t t-foreach="ctx.get('other_docs')" t-as="doc">
<li t-esc="doc"/>
</t>
</ul>
</t>
</t>
<p>If you have any questions while filling out the form, feel free to reach out to us at
<a href="mailto:hr@ftprotech.com" style="color: #007bff; text-decoration: none;">
hr@ftprotech.com</a>.
</p>
<p>Looking forward to welcoming you!</p>
<p>Best Regards,
<br/>
<strong>
<t t-esc="object.company_id.name or 'HR Team'">HR Team</t>
</strong>
</p>
</div>
</field>
<field name="auto_delete" eval="True"/>
</record>
<record id="email_template_candidate_approval" model="mail.template">
<field name="name">Candidate Approval Request</field>
<field name="model_id" ref="hr_recruitment.model_hr_applicant"/>
<field name="email_from">{{ user.company_id.email or user.email_formatted }}</field>
<field name="email_to">{{ ctx['recruitment_manager'].email }}</field>
<field name="subject">Approval Required: Candidate {{ object.candidate_id.partner_name }}</field>
<field name="description">Request for approval from the Recruitment Manager for candidate progression.
</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-esc="ctx['recruitment_manager'].name">Recruitment Manager</t>,
<br/>
<br/>
The following candidate requires your approval to proceed to the next stage of the hiring
process:
<ul>
<li>
<strong>Candidate Name:</strong>
<t t-esc="object.candidate_id.partner_name">Candidate</t>
</li>
<li>
<strong>Current Stage:</strong>
<t t-esc="object.recruitment_stage_id.name">Stage</t>
</li>
<li>
<strong>Applied Job Position:</strong>
<t t-esc="object.job_id.name">Job Position</t>
</li>
</ul>
<br/>
Please review the candidates details and provide your approval.
<br/>
<t t-set="base_url"
t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
<t t-set="approval_url"
t-value="base_url + '/web?#id=%s&amp;model=hr.applicant&amp;view_type=form' % object.id"/>
<strong>Application:</strong>
<a t-att-href="approval_url" target="_blank" style="color: #007bff; text-decoration: none;">
Click here to view details
</a>
<br/>
<br/>
Regards,
<br/>
<t t-esc="object.user_id.name or 'Recruitment Team'">Recruitment Team</t>
</p>
</div>
</field>
<field name="auto_delete" eval="True"/>
</record>
<record id="email_template_stage_approved" model="mail.template">
<field name="name">Candidate Stage Approved</field>
<field name="model_id" ref="hr_recruitment.model_hr_applicant"/>
<field name="email_from">{{ ctx['recruitment_manager'].email }}</field>
<field name="email_to">{{ object.user_id.email }}</field>
<field name="subject">Candidate {{ object.candidate_id.partner_name }} Approved for Next Stage</field>
<field name="description">Notification that the candidate has been approved to proceed to the next stage.
</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-esc="object.user_id.name">Recruiter</t>,
<br/>
<br/>
The candidate
<strong>
<t t-esc="object.candidate_id.partner_name">Candidate</t>
</strong>
has been approved by the Recruitment Manager
and has progressed to the next stage of the hiring process.
<br/>
<br/>
<ul>
<li>
<strong>Candidate Name:</strong>
<t t-esc="object.candidate_id.partner_name"/>
</li>
<li>
<strong>Approved Stage:</strong>
<t t-esc="object.recruitment_stage_id.name"/>
</li>
<li>
<strong>Applied Job Position:</strong>
<t t-esc="object.job_id.name"/>
</li>
</ul>
<br/>
Please proceed with the next steps in the hiring process.
<br/>
<t t-set="base_url"
t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
<t t-set="applicant_url"
t-value="base_url + '/web?#id=%s&amp;model=hr.applicant&amp;view_type=form' % object.id"/>
<br/>
<br/>
<strong>Application:</strong>
<a t-att-href="applicant_url" target="_blank" style="color: #007bff; text-decoration: none;">
Click here to view details
</a>
<br/>
<br/>
Regards,
<br/>
<t t-esc="ctx['recruitment_manager'].name or 'Recruitment Manager'">Recruitment Manager</t>
</p>
</div>
</field>
<field name="auto_delete" eval="True"/>
</record>
</data>
</odoo>