Fix experience of employee

This commit is contained in:
raman 2025-05-23 11:33:52 +05:30
parent fbb7532d56
commit 3d57491343
1 changed files with 1 additions and 0 deletions

View File

@ -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)],