Removed Old stage in recruitment and website description Fix

This commit is contained in:
Pranay 2025-04-07 11:06:29 +05:30 committed by raman
parent 448385fd45
commit fdc9f88129
3 changed files with 34 additions and 6 deletions

View File

@ -31,6 +31,20 @@ class HrCandidate(models.Model):
applications_stages_stat = fields.Many2many('application.stage.status',string="Applications History", compute="_compute_applications_stages_stat") applications_stages_stat = fields.Many2many('application.stage.status',string="Applications History", compute="_compute_applications_stages_stat")
# availability_status = fields.Selection([('available','Available'),('not_available','Not Available'),('hired','Hired'),('abscond','Abscond')]) # availability_status = fields.Selection([('available','Available'),('not_available','Not Available'),('hired','Hired'),('abscond','Abscond')])
def action_open_applications(self):
self.ensure_one()
return {
'name': _('Applications'),
'type': 'ir.actions.act_window',
'res_model': 'hr.applicant',
'view_mode': 'list,kanban,form,pivot,graph,calendar,activity',
'domain': [('id', 'in', self.applicant_ids.ids)],
'context': {
'active_test': False,
'search_default_job_recruitment_stage': 1,
},
}
@api.depends('applicant_ids') @api.depends('applicant_ids')
def _compute_applications_stages_stat(self): def _compute_applications_stages_stat(self):
for rec in self: for rec in self:

View File

@ -162,6 +162,9 @@
<filter string="Job Recruitment Stage" name="job_recruitment_stage" domain="[]" <filter string="Job Recruitment Stage" name="job_recruitment_stage" domain="[]"
context="{'group_by': 'recruitment_stage_id'}"/> context="{'group_by': 'recruitment_stage_id'}"/>
</xpath> </xpath>
<xpath expr="//search/group/filter[@name='stage']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field> </field>
</record> </record>

View File

@ -176,8 +176,19 @@
</div> </div>
</div> </div>
</section> </section>
<section class="pt32">
<div class="container">
<div class="row">
<div class="col-lg-8 pb32" itemprop="description">
<p class="lead">
<div t-field="job.description"/>
</p>
</div>
</div>
</div>
</section>
<!-- Job Description --> <!-- Job Description -->
<div t-field="job.website_description"/> <!-- <div t-field="job.website_description"/>-->
<div class="oe_structure"> <div class="oe_structure">
<section class="o_job_bottom_bar mt24 mb48"> <section class="o_job_bottom_bar mt24 mb48">
<div class="text-center"> <div class="text-center">
@ -1074,11 +1085,11 @@
<!--<template id="website_hr_recruitment_extended.default_website_description">--> <!--<template id="website_hr_recruitment_extended.default_website_description">-->
<!-- &lt;!&ndash; Description text and ratings &ndash;&gt;--> <!-- &lt;!&ndash; Description text and ratings &ndash;&gt;-->
<!-- <section class="pt32">--> <!-- <section class="pt32">-->
<!-- <div class="container">--> <!-- <div class="container">-->
<!-- <div class="row">--> <!-- <div class="row">-->
<!-- <div class="col-lg-8 pb32" itemprop="description">--> <!-- <div class="col-lg-8 pb32" itemprop="description">-->
<!-- <p class="lead">--> <!-- <p class="lead">-->
<!-- As an employee of our company, you will <b>collaborate with each department--> <!-- As an employee of our company, you will <b>collaborate with each department-->
<!-- to create and deploy disruptive products.</b> Come work at a growing company--> <!-- to create and deploy disruptive products.</b> Come work at a growing company-->
<!-- that offers great benefits with opportunities to moving forward and learn--> <!-- that offers great benefits with opportunities to moving forward and learn-->