851 lines
45 KiB
XML
851 lines
45 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="model_hr_job_recruitment"/>
|
||
<field name="email_from">{{ object.company.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&model=hr.job.recruitment&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 & 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="request_form_id" t-value="ctx.get('applicant_request_form_id')"/>
|
||
<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/%s' % (object.id, request_form_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>
|
||
<field name="subject">New Submission: Applicant Salary & 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&model=hr.applicant&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_request_documents" model="mail.template">
|
||
<field name="name">Document Submission 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">Important: Document Submission Request | FTPROTECH</field>
|
||
<field name="description">
|
||
Email requesting necessary documents from applicants.
|
||
</field>
|
||
<field name="body_html" type="html">
|
||
<t t-set="applicant_name" t-value="object.candidate_id.partner_name or 'Applicant'"/>
|
||
<t t-set="request_form_id" t-value="ctx.get('applicant_request_form_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 are doing well! As part of our recruitment process, we kindly request you to submit
|
||
the following documents at the earliest.
|
||
</p>
|
||
|
||
<t t-if="ctx.get('personal_docs') or ctx.get('education_docs') or ctx.get('previous_employer_docs') or ctx.get('other_docs')">
|
||
<p>Please ensure to provide soft copies of the required documents:</p>
|
||
|
||
<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>
|
||
|
||
<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>
|
||
|
||
<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>
|
||
|
||
<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>Please upload your documents via the following link:</p>
|
||
|
||
<t t-set="upload_url" t-value="ctx.get('applicant_request_form_url')"/>
|
||
<t t-esc="upload_url"/>
|
||
|
||
<p style="text-align: center; margin-top: 20px;">
|
||
<a t-att-href="upload_url" target="_blank"
|
||
style="background-color: #007bff; color: #fff; padding: 10px 20px; text-decoration: none;
|
||
font-weight: bold; border-radius: 5px; display: inline-block;">
|
||
Upload Your Documents
|
||
</a>
|
||
</p>
|
||
|
||
<p>If you have any questions or need assistance, please contact us at
|
||
<a href="mailto:hr@ftprotech.com" style="color: #007bff; text-decoration: none;">
|
||
hr@ftprotech.com</a>.
|
||
</p>
|
||
|
||
<p>We appreciate your cooperation and look forward to completing the process smoothly.</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_user_submit" model="mail.template">
|
||
<field name="name">Joining Formalities Submission Notification</field>
|
||
<field name="model_id" ref="hr_recruitment.model_hr_applicant"/>
|
||
<field name="email_from">{{ object.email_from }}</field>
|
||
<field name="email_to">hr@ftprotech.com</field>
|
||
<field name="subject">{{ object.candidate_id.partner_name or 'Applicant' }} JOD Submission</field>
|
||
<field name="description">
|
||
Notification sent by the applicants with joining formalities details.
|
||
</field>
|
||
<field name="body_html" type="html">
|
||
<div style="font-family: Arial, sans-serif; font-size: 14px; color: #333; padding: 20px; line-height: 1.6;">
|
||
<p>Dear
|
||
<strong>
|
||
<t>HR</t>
|
||
</strong>
|
||
,
|
||
</p>
|
||
<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>
|
||
<p>
|
||
<t t-esc="applicant_name"/> has submitted the Joining Formalities (JOD) Form. Please click the link below to review the details.
|
||
</p>
|
||
|
||
<t t-set="base_url" t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
|
||
<!-- FIXED LINE: Using proper string concatenation -->
|
||
<t t-set="form_url" t-value="base_url + '/odoo/hr.applicant/' + str(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;">
|
||
Open Application
|
||
</a>
|
||
</p>
|
||
<p>Best Regards,
|
||
<br/>
|
||
<strong>
|
||
<t t-esc="object.company_id.name or 'HR Team'">HR Team</t>
|
||
</strong>
|
||
</p>
|
||
</div>
|
||
</field>
|
||
</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') and 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 candidate’s 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&model=hr.applicant&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&model=hr.applicant&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>
|
||
|
||
|
||
<record id="email_template_recruiter_assignment_template" model="mail.template">
|
||
<field name="name">Recruitment Assignment Notification</field>
|
||
<field name="model_id" ref="model_hr_job_recruitment"/>
|
||
<field name="email_from">{{ user.email_formatted }}</field>
|
||
<field name="email_to">{{ object.user_id.email }}</field>
|
||
<field name="subject">Job Assignment - {{ object.job_id.name }}</field>
|
||
<field name="description">
|
||
Notification to recruiter regarding new job requisition assignment.
|
||
</field>
|
||
<field name="body_html" type="html">
|
||
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
||
Dear <t t-esc="ctx['recruiter_name']">Recruiter</t>,
|
||
<br/>
|
||
<br/>
|
||
A new job requisition has been assigned to you.
|
||
<br/>
|
||
<br/>
|
||
<ul>
|
||
<t t-if="object.recruitment_sequence">
|
||
<li>
|
||
<strong>Job ID:</strong>
|
||
<t t-out="object.recruitment_sequence"/>
|
||
</li>
|
||
</t>
|
||
<t t-if="object.job_id">
|
||
<li>
|
||
<strong>Job Title:</strong>
|
||
<t t-out="object.job_id.name"/>
|
||
</li>
|
||
</t>
|
||
<t t-if="object.job_priority">
|
||
<li>
|
||
<strong>Priority Level:</strong>
|
||
<t t-out="object.job_priority"/>
|
||
</li>
|
||
</t>
|
||
<t t-if="object.locations and object.locations.mapped('location_name')">
|
||
<li>
|
||
<strong>Location:</strong>
|
||
<t t-out="', '.join(object.locations.mapped('location_name'))"/>
|
||
</li>
|
||
</t>
|
||
<t t-if="object.budget">
|
||
<li>
|
||
<strong>Budget:</strong>
|
||
<t t-out="object.budget"/>
|
||
</li>
|
||
</t>
|
||
<t t-if="object.id">
|
||
<li>
|
||
<strong>Job Description:</strong>
|
||
<a t-att-href="'%s/web#id=%d&model=hr.job.recruitment&action=%s&view_type=form' %
|
||
(object.env['ir.config_parameter'].sudo().get_param('web.base.url'), object.id, object.env.ref('hr_recruitment_extended.action_hr_job_recruitment').id)"
|
||
target="_blank">
|
||
View Job Details
|
||
</a>
|
||
</li>
|
||
</t>
|
||
</ul>
|
||
<br/>
|
||
Kindly review the requisition and start sourcing suitable candidates in the ATS.
|
||
<br/>
|
||
<br/>
|
||
Regards,
|
||
<br/>
|
||
<t t-out="user.name or 'Hiring Manager'">Hiring Manager</t>
|
||
</p>
|
||
|
||
</field>
|
||
</record>
|
||
|
||
<record id="application_client_submission_email_template" model="mail.template">
|
||
<field name="name">Applicant Share Template</field>
|
||
<field name="model_id" ref="hr_recruitment.model_hr_applicant"/>
|
||
<field name="email_from">{{ user.email_formatted }}</field>
|
||
<field name="email_to">{{ object.hr_job_recruitment.requested_by.email }}</field>
|
||
<field name="subject">{{ object.candidate_id.partner_name or object.partner_name or object.display_name }} -
|
||
{{ object.hr_job_recruitment.job_id.name or object.job_id.name }}
|
||
</field>
|
||
<field name="description">
|
||
Share applicant and job requisition details by email.
|
||
</field>
|
||
<field name="body_html" type="html">
|
||
<t t-set="applicant_name"
|
||
t-value="object.candidate_id.partner_name or object.partner_name or object.display_name"/>
|
||
<t t-set="job_name">
|
||
<t t-if="object.hr_job_recruitment.job_id">
|
||
<t t-set="job_name" t-value="object.hr_job_recruitment.job_id.display_name"/>
|
||
</t>
|
||
<t t-elif="object.job_id">
|
||
<t t-set="job_name" t-value="object.job_id.name"/>
|
||
</t>
|
||
<t t-else="">
|
||
<t t-set="job_name" t-value="''"/>
|
||
</t>
|
||
</t>
|
||
<t t-set="recruitment_name"
|
||
t-value="object.hr_job_recruitment.recruitment_sequence or object.hr_job_recruitment.display_name or ''"/>
|
||
<t t-set="requested_by">
|
||
<t t-if="object.hr_job_recruitment.requested_by">
|
||
<t t-set="requested_by" t-value="object.hr_job_recruitment.requested_by.name"/>
|
||
</t>
|
||
<t t-else="">
|
||
<t t-set="requested_by" t-value="''"/>
|
||
</t>
|
||
</t>
|
||
<t t-set="locations">
|
||
<t t-if="object.hr_job_recruitment.locations">
|
||
<t t-set="locations_str"
|
||
t-value="', '.join(object.hr_job_recruitment.locations.mapped('name'))"/>
|
||
<t t-set="locations" t-value="locations_str"/>
|
||
</t>
|
||
<t t-else="">
|
||
<t t-set="locations" t-value="''"/>
|
||
</t>
|
||
</t>
|
||
<div style="margin: 0; padding: 0; font-size: 13px; line-height: 1.6;">
|
||
<p>Dear Sir/Madam,</p>
|
||
<p>Please find the applicant details below for your review.</p>
|
||
<table style="width: 100%; border-collapse: collapse; margin: 16px 0;">
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<strong>Applicant</strong>
|
||
</td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<t t-esc="applicant_name"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<strong>Email</strong>
|
||
</td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<t t-esc="object.email_from or ''"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<strong>Phone</strong>
|
||
</td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<t t-esc="object.partner_phone or ''"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<strong>Current Organization</strong>
|
||
</td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<t t-esc="object.current_organization or ''"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<strong>Total Experience</strong>
|
||
</td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<t t-esc="object.total_exp or ''"/>
|
||
<t t-esc="object.total_exp_type or ''"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<strong>Relevant Experience</strong>
|
||
</td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<t t-esc="object.relevant_exp or ''"/>
|
||
<t t-esc="object.relevant_exp_type or ''"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<strong>Job Requisition</strong>
|
||
</td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<t t-esc="recruitment_name"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<strong>Job Position</strong>
|
||
</td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<t t-esc="job_name"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<strong>Requested By</strong>
|
||
</td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<t t-esc="requested_by"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<strong>Location</strong>
|
||
</td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;">
|
||
<t t-esc="locations"/>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<p>The applicant resume is attached for reference. Please review and let us know your feedback.</p>
|
||
<p>Regards,
|
||
<br/>
|
||
<t t-out="user.name or 'Hiring Manager'">Hiring Manager</t>
|
||
</p>
|
||
</div>
|
||
</field>
|
||
</record>
|
||
|
||
<record id="job_recruitment_share_email_template" model="mail.template">
|
||
<field name="name">Job Recruitment Share Template</field>
|
||
<field name="model_id" ref="hr_recruitment_extended.model_hr_job_recruitment"/>
|
||
<field name="email_from">{{ user.email_formatted }}</field>
|
||
<field name="email_to">{{ object.requested_by.email or object.address_id.email or '' }}</field>
|
||
<field name="subject">{{ object.job_id.name or object.display_name }} - Job Description</field>
|
||
<field name="description">
|
||
Share job description and recruitment details by email.
|
||
</field>
|
||
<field name="body_html" type="html">
|
||
<t t-set="job_name" t-value="object.job_id.name or object.name or object.display_name or ''"/>
|
||
<t t-set="recruitment_name" t-value="object.recruitment_sequence or object.display_name or ''"/>
|
||
<t t-set="locations" t-value="', '.join(object.locations.mapped('name')) if object.locations else ''"/>
|
||
<t t-set="primary_skills" t-value="', '.join(object.skill_ids.mapped('name')) if object.skill_ids else ''"/>
|
||
<t t-set="secondary_skills" t-value="', '.join(object.secondary_skill_ids.mapped('name')) if object.secondary_skill_ids else ''"/>
|
||
<div style="margin: 0; padding: 0; font-size: 13px; line-height: 1.6;">
|
||
<p>Dear Sir/Madam,</p>
|
||
<p>Please find the job description and hiring details below for your review and sourcing support.</p>
|
||
<table style="width: 100%; border-collapse: collapse; margin: 16px 0;">
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Job Requisition</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="recruitment_name"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Job Position</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="job_name"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Recruitment Type</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="object.recruitment_type or ''"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Requested By</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="object.requested_by.name or ''"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Primary Recruiter</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="object.user_id.name or ''"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Open Positions</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="object.no_of_recruitment or 0"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Experience</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="object.experience.display_name or ''"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Budget</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="object.budget or ''"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Locations</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="locations"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Primary Skills</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="primary_skills"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><strong>Secondary Skills</strong></td>
|
||
<td style="padding: 8px; border: 1px solid #d9d9d9;"><t t-esc="secondary_skills"/></td>
|
||
</tr>
|
||
</table>
|
||
<div>
|
||
<strong>Job Description</strong>
|
||
<div t-out="object.description or ''"/>
|
||
</div>
|
||
<p>Please review and share suitable profiles at the earliest convenience.</p>
|
||
<p>Regards,<br/><t t-out="user.name or 'Hiring Manager'">Hiring Manager</t></p>
|
||
</div>
|
||
</field>
|
||
</record>
|
||
|
||
</data>
|
||
</odoo>
|