Compare commits
49 Commits
6bd0b292fd
...
a7e6a02fb4
| Author | SHA1 | Date |
|---|---|---|
|
|
a7e6a02fb4 | |
|
|
4f56cf66c7 | |
|
|
fc569e18c9 | |
|
|
5bad012769 | |
|
|
b03e903963 | |
|
|
d4191a9a84 | |
|
|
ff0191cb42 | |
|
|
064baee48b | |
|
|
9e5f1f22c3 | |
|
|
f5a6b0f444 | |
|
|
f7411e1ce4 | |
|
|
d787150ee4 | |
|
|
128f3350ee | |
|
|
b42db439cf | |
|
|
07a4061349 | |
|
|
65bf653ebc | |
|
|
7b42350819 | |
|
|
56e2c05a6e | |
|
|
255839e2a0 | |
|
|
16ff6d80d8 | |
|
|
50af9581a4 | |
|
|
f65e4f8302 | |
|
|
06949d6aad | |
|
|
348a5ce585 | |
|
|
2451382c85 | |
|
|
cc006a8001 | |
|
|
ecddf3c9dd | |
|
|
966a6f6b8b | |
|
|
b0f6731d23 | |
|
|
370f99d271 | |
|
|
08b66f6133 | |
|
|
c8f7ec7ed0 | |
|
|
31cc483421 | |
|
|
3f31136244 | |
|
|
cb058fcb71 | |
|
|
9126f98aba | |
|
|
d91a30e989 | |
|
|
5c66aaa472 | |
|
|
be44eab021 | |
|
|
5008d05d95 | |
|
|
b5a08bb628 | |
|
|
894d2c0491 | |
|
|
741023556a | |
|
|
aa683334c3 | |
|
|
e7c29ab7d1 | |
|
|
99d8649b3a | |
|
|
f5fcd679ac | |
|
|
ce53fb3495 | |
|
|
495c27d96d |
|
|
@ -282,7 +282,6 @@ class website_hr_recruitment_applications(http.Controller):
|
||||||
]
|
]
|
||||||
|
|
||||||
applicant.write(applicant_data)
|
applicant.write(applicant_data)
|
||||||
|
|
||||||
template = request.env.ref('hr_recruitment_extended.email_template_post_onboarding_form_user_submit',
|
template = request.env.ref('hr_recruitment_extended.email_template_post_onboarding_form_user_submit',
|
||||||
raise_if_not_found=False)
|
raise_if_not_found=False)
|
||||||
group = request.env.ref('hr.group_hr_manager')
|
group = request.env.ref('hr.group_hr_manager')
|
||||||
|
|
@ -290,13 +289,15 @@ class website_hr_recruitment_applications(http.Controller):
|
||||||
email_values = {
|
email_values = {
|
||||||
'email_from': applicant.email_from,
|
'email_from': applicant.email_from,
|
||||||
'email_to': 'hr@ftprotech.com',
|
'email_to': 'hr@ftprotech.com',
|
||||||
'email_cc': [user.email for user in users if user.email != 'hr@ftprotech.com']
|
'email_cc': [user.email for user in users if user.email != 'hr@ftprotech.com' and user.employee_id.department_id.name == 'Human Resource']
|
||||||
}
|
}
|
||||||
# Use 'with_context' to override the email template fields dynamically
|
# Use 'with_context' to override the email template fields dynamically
|
||||||
template.sudo().send_mail(applicant.id, email_values=email_values,
|
template.sudo().send_mail(applicant.id, email_values=email_values,
|
||||||
force_send=True)
|
force_send=True)
|
||||||
|
|
||||||
return request.render("hr_recruitment_extended.thank_you_template")
|
return request.render("hr_recruitment_extended.thank_you_template",{
|
||||||
|
'applicant': applicant
|
||||||
|
})
|
||||||
|
|
||||||
def safe_date_parse(self,date_str):
|
def safe_date_parse(self,date_str):
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -308,30 +308,22 @@
|
||||||
</strong>
|
</strong>
|
||||||
,
|
,
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<t t-set="applicant_name" t-value="object.candidate_id.partner_name or 'Applicant'"/>
|
<t t-set="applicant_name" t-value="object.candidate_id.partner_name or 'Applicant'"/>
|
||||||
<t t-if="object.employee_code">
|
<t t-if="object.employee_code">
|
||||||
<t t-set="employee_code" t-value="object.employee_code"/>
|
<t t-set="employee_code" t-value="object.employee_code"/>
|
||||||
</t>
|
</t>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<t t-esc="applicant_name"/> has submitted the Joining Formalities (JOD) Form. Please click the link below to review the details.
|
<t t-esc="applicant_name"/> has submitted the Joining Formalities (JOD) Form. Please click the link below to review the details.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<t t-set="base_url" t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
|
||||||
<t t-set="base_url"
|
<!-- FIXED LINE: Using proper string concatenation -->
|
||||||
t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
|
<t t-set="form_url" t-value="base_url + '/odoo/hr.applicant/' + str(object.id)"/>
|
||||||
<t t-set="form_url"
|
|
||||||
t-value="base_url + '/odoo/hr.applicant/' % object.id"/>
|
|
||||||
|
|
||||||
<p style="text-align: center; margin-top: 20px;">
|
<p style="text-align: center; margin-top: 20px;">
|
||||||
<a t-att-href="form_url" target="_blank"
|
<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;">
|
||||||
style="background-color: #007bff; color: #fff; padding: 10px 20px; text-decoration: none;
|
|
||||||
font-weight: bold; border-radius: 5px; display: inline-block;">
|
|
||||||
Open Application
|
Open Application
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>Best Regards,
|
<p>Best Regards,
|
||||||
<br/>
|
<br/>
|
||||||
<strong>
|
<strong>
|
||||||
|
|
@ -339,7 +331,6 @@
|
||||||
</strong>
|
</strong>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
<record id="email_template_post_onboarding_form" model="mail.template">
|
<record id="email_template_post_onboarding_form" model="mail.template">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue