commit
a9f0c83e35
|
|
@ -33,6 +33,7 @@ class HrEmployee(models.Model):
|
||||||
@api.model
|
@api.model
|
||||||
def get_user_employee_details(self):
|
def get_user_employee_details(self):
|
||||||
uid = request.session.uid
|
uid = request.session.uid
|
||||||
|
self.env["hr.employee"].sudo().search([("user_id", "=", uid)])._compute_experience()
|
||||||
"""To fetch the details of employee"""
|
"""To fetch the details of employee"""
|
||||||
return self.env["hr.employee"].sudo().search_read(
|
return self.env["hr.employee"].sudo().search_read(
|
||||||
[("user_id", "=", uid)],
|
[("user_id", "=", uid)],
|
||||||
|
|
|
||||||
|
|
@ -256,6 +256,8 @@ class HRJobRecruitment(models.Model):
|
||||||
rec.submission_status = 'zero'
|
rec.submission_status = 'zero'
|
||||||
|
|
||||||
|
|
||||||
|
experience = fields.Many2one('candidate.experience', string="Experience")
|
||||||
|
|
||||||
@api.depends('application_ids.submitted_to_client')
|
@api.depends('application_ids.submitted_to_client')
|
||||||
def _compute_no_of_submissions(self):
|
def _compute_no_of_submissions(self):
|
||||||
counts = dict(self.env['hr.applicant']._read_group(
|
counts = dict(self.env['hr.applicant']._read_group(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue