#fix: JoinformChanges
This commit is contained in:
parent
59c504e06c
commit
eff39e4662
|
|
@ -11,7 +11,7 @@ _logger = logging.getLogger(__name__)
|
|||
|
||||
class website_hr_recruitment_applications_extended(website_hr_recruitment_applications):
|
||||
|
||||
@http.route(['/FTPROTECH/JoiningForm/<int:applicant_id>'], type='http', auth="public",
|
||||
@http.route(['/SRIVYNPLATFORMS/JoiningForm/<int:applicant_id>'], type='http', auth="public",
|
||||
website=True)
|
||||
def post_onboarding_form(self, applicant_id, **kwargs):
|
||||
"""Renders the website form for applicants to submit additional details."""
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
<!-- Header -->
|
||||
<div style="text-align:center; margin-bottom: 40px;">
|
||||
<h1 style="margin: 0; font-size: 24px;">Welcome to FTPROTECH</h1>
|
||||
<h1 style="margin: 0; font-size: 24px;">Welcome to SRIVYN PLATFORMS PVT LTD</h1>
|
||||
<h2 style="margin: 10px 0 0;">Employee Joining Form</h2>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ class PostOnboardingAttachmentWizard(models.TransientModel):
|
|||
rec.request_form_id.status = 'email_sent_to_candidate'
|
||||
else:
|
||||
applicant.post_onboarding_form_status = 'email_sent_to_candidate'
|
||||
applicant.joining_form_link = '%s/FTPROTECH/JoiningForm/%s'%(base_url,applicant.id)
|
||||
applicant.joining_form_link = '%s/SRIVYNPLATFORMS/JoiningForm/%s'%(base_url,applicant.id)
|
||||
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ class website_hr_recruitment_applications(http.Controller):
|
|||
|
||||
|
||||
|
||||
@http.route(['/FTPROTECH/JoiningForm/<int:applicant_id>'], type='http', auth="public",
|
||||
@http.route(['/SRIVYNPLATFORMS/JoiningForm/<int:applicant_id>'], type='http', auth="public",
|
||||
website=True)
|
||||
def post_onboarding_form(self, applicant_id, **kwargs):
|
||||
"""Renders the website form for applicants to submit additional details."""
|
||||
|
|
@ -174,7 +174,7 @@ class website_hr_recruitment_applications(http.Controller):
|
|||
return request.not_found()
|
||||
|
||||
|
||||
@http.route(['/FTPROTECH/submit/<int:applicant_id>/JoinForm'], type='http', auth="public",
|
||||
@http.route(['/SRIVYNPLATFORMS/submit/<int:applicant_id>/JoinForm'], type='http', auth="public",
|
||||
methods=['POST'], website=True, csrf=False)
|
||||
def process_employee_joining_form(self,applicant_id,**post):
|
||||
applicant = request.env['hr.applicant'].sudo().browse(applicant_id)
|
||||
|
|
|
|||
|
|
@ -270,8 +270,8 @@
|
|||
</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>.
|
||||
<a href="mailto:sriya.hr@ftprotech.com" style="color: #007bff; text-decoration: none;">
|
||||
sriya.hr@ftprotech.com</a>.
|
||||
</p>
|
||||
|
||||
<p>We appreciate your cooperation and look forward to completing the process smoothly.</p>
|
||||
|
|
@ -292,7 +292,7 @@
|
|||
<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="email_to">sriya.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.
|
||||
|
|
@ -335,7 +335,7 @@
|
|||
<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="subject">Welcome Onboard | Joining Formalities | SRIVYN PLATFORMS PVT LTD</field>
|
||||
<field name="description">
|
||||
Notification sent to applicants with joining formalities details.
|
||||
</field>
|
||||
|
|
@ -354,7 +354,7 @@
|
|||
,
|
||||
</p>
|
||||
|
||||
<p>Welcome to the <strong>FTPROTECH</strong> family! 🎉
|
||||
<p>Welcome to the <strong>SRIVYN PLATFORMS PVT LTD</strong> family! 🎉
|
||||
</p>
|
||||
|
||||
<p>We are excited to have you on board. Please take some time to complete the joining formalities on
|
||||
|
|
@ -364,7 +364,7 @@
|
|||
<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"/>
|
||||
t-value="base_url + '/SRIVYNPLATFORMS/JoiningForm/%s' % object.id"/>
|
||||
|
||||
<p style="text-align: center; margin-top: 20px;">
|
||||
<a t-att-href="form_url" target="_blank"
|
||||
|
|
@ -427,8 +427,8 @@
|
|||
</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>.
|
||||
<a href="mailto:sriya.hr@ftprotech.com" style="color: #007bff; text-decoration: none;">
|
||||
sriya.hr@ftprotech.com</a>.
|
||||
</p>
|
||||
|
||||
<p>Looking forward to welcoming you!</p>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
<!-- Header -->
|
||||
<div style="text-align:center; margin-bottom: 40px;">
|
||||
<h1 style="margin: 0; font-size: 24px;">Welcome to FTPROTECH</h1>
|
||||
<h1 style="margin: 0; font-size: 24px;">Welcome to SRIVYN PLATFORMS PVT LTD</h1>
|
||||
<h2 style="margin: 10px 0 0;">Employee Joining Form</h2>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -195,18 +195,18 @@
|
|||
</template>
|
||||
|
||||
|
||||
<template id="post_onboarding_form_template" name="FTPROTECH Joining Form">
|
||||
<template id="post_onboarding_form_template" name="SRIVYN PLATFORMS Joining Form">
|
||||
<t t-call="website.layout">
|
||||
<section class="container mt-5">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-10">
|
||||
<div class="card shadow-lg p-4">
|
||||
<h1 class="form-header">Welcome to FTPROTECH</h1>
|
||||
<h1 class="form-header">Welcome to SRIVYN PLATFORMS</h1>
|
||||
<h4 class="form-subHeader">Joining Form</h4>
|
||||
<hr/>
|
||||
|
||||
<form id="post_onboarding_form"
|
||||
t-att-action="'/FTPROTECH/submit/%s/JoinForm'%(applicant.id)" method="post" enctype="multipart/form-data">
|
||||
t-att-action="'/SRIVYNPLATFORMS/submit/%s/JoinForm'%(applicant.id)" method="post" enctype="multipart/form-data">
|
||||
<div>
|
||||
<!-- Upload or Capture Photo -->
|
||||
<input type="hidden" name="applicant_id" t-att-value="applicant.id"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue