#fix: JoinformChanges

This commit is contained in:
seshikanth 2026-07-08 18:02:34 +05:30
parent 59c504e06c
commit eff39e4662
7 changed files with 17 additions and 17 deletions

View File

@ -11,7 +11,7 @@ _logger = logging.getLogger(__name__)
class website_hr_recruitment_applications_extended(website_hr_recruitment_applications): 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) website=True)
def post_onboarding_form(self, applicant_id, **kwargs): def post_onboarding_form(self, applicant_id, **kwargs):
"""Renders the website form for applicants to submit additional details.""" """Renders the website form for applicants to submit additional details."""

View File

@ -16,7 +16,7 @@
<!-- Header --> <!-- Header -->
<div style="text-align:center; margin-bottom: 40px;"> <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> <h2 style="margin: 10px 0 0;">Employee Joining Form</h2>
</div> </div>

View File

@ -146,7 +146,7 @@ class PostOnboardingAttachmentWizard(models.TransientModel):
rec.request_form_id.status = 'email_sent_to_candidate' rec.request_form_id.status = 'email_sent_to_candidate'
else: else:
applicant.post_onboarding_form_status = 'email_sent_to_candidate' 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'} return {'type': 'ir.actions.act_window_close'}

View File

@ -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) website=True)
def post_onboarding_form(self, applicant_id, **kwargs): def post_onboarding_form(self, applicant_id, **kwargs):
"""Renders the website form for applicants to submit additional details.""" """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() 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) methods=['POST'], website=True, csrf=False)
def process_employee_joining_form(self,applicant_id,**post): def process_employee_joining_form(self,applicant_id,**post):
applicant = request.env['hr.applicant'].sudo().browse(applicant_id) applicant = request.env['hr.applicant'].sudo().browse(applicant_id)

View File

@ -270,8 +270,8 @@
</p> </p>
<p>If you have any questions or need assistance, please contact us at <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;"> <a href="mailto:sriya.hr@ftprotech.com" style="color: #007bff; text-decoration: none;">
hr@ftprotech.com</a>. sriya.hr@ftprotech.com</a>.
</p> </p>
<p>We appreciate your cooperation and look forward to completing the process smoothly.</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="name">Joining Formalities Submission Notification</field>
<field name="model_id" ref="hr_recruitment.model_hr_applicant"/> <field name="model_id" ref="hr_recruitment.model_hr_applicant"/>
<field name="email_from">{{ object.email_from }}</field> <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="subject">{{ object.candidate_id.partner_name or 'Applicant' }} JOD Submission</field>
<field name="description"> <field name="description">
Notification sent by the applicants with joining formalities details. 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="model_id" ref="hr_recruitment.model_hr_applicant"/>
<field name="email_from">{{ user.company_id.email or user.email_formatted }}</field> <field name="email_from">{{ user.company_id.email or user.email_formatted }}</field>
<field name="email_to">{{ object.email_from }}</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"> <field name="description">
Notification sent to applicants with joining formalities details. Notification sent to applicants with joining formalities details.
</field> </field>
@ -354,7 +354,7 @@
, ,
</p> </p>
<p>Welcome to the <strong>FTPROTECH</strong> family! 🎉 <p>Welcome to the <strong>SRIVYN PLATFORMS PVT LTD</strong> family! 🎉
</p> </p>
<p>We are excited to have you on board. Please take some time to complete the joining formalities on <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 t-set="base_url"
t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"/> t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
<t t-set="form_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;"> <p style="text-align: center; margin-top: 20px;">
<a t-att-href="form_url" target="_blank" <a t-att-href="form_url" target="_blank"
@ -427,8 +427,8 @@
</t> </t>
<p>If you have any questions while filling out the form, feel free to reach out to us at <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;"> <a href="mailto:sriya.hr@ftprotech.com" style="color: #007bff; text-decoration: none;">
hr@ftprotech.com</a>. sriya.hr@ftprotech.com</a>.
</p> </p>
<p>Looking forward to welcoming you!</p> <p>Looking forward to welcoming you!</p>

View File

@ -16,7 +16,7 @@
<!-- Header --> <!-- Header -->
<div style="text-align:center; margin-bottom: 40px;"> <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> <h2 style="margin: 10px 0 0;">Employee Joining Form</h2>
</div> </div>

View File

@ -195,18 +195,18 @@
</template> </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"> <t t-call="website.layout">
<section class="container mt-5"> <section class="container mt-5">
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-md-10"> <div class="col-md-10">
<div class="card shadow-lg p-4"> <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> <h4 class="form-subHeader">Joining Form</h4>
<hr/> <hr/>
<form id="post_onboarding_form" <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> <div>
<!-- Upload or Capture Photo --> <!-- Upload or Capture Photo -->
<input type="hidden" name="applicant_id" t-att-value="applicant.id"/> <input type="hidden" name="applicant_id" t-att-value="applicant.id"/>