diff --git a/soong_workflow/models/soong_user_role.py b/soong_workflow/models/soong_user_role.py index b2b8929b0..9b3afb05e 100644 --- a/soong_workflow/models/soong_user_role.py +++ b/soong_workflow/models/soong_user_role.py @@ -36,12 +36,4 @@ class YuthonUserRole(models.Model): break department = department.parent_id else: - record.yuthon_company = 'thtz' - - @api.depends('name') - def _compute_display_name(self): - for record in self: - if record.department_id: - record.display_name = f"{record.department_id.name}-{record.name}" - else: - record.display_name = record.name \ No newline at end of file + record.yuthon_company = 'thtz' \ No newline at end of file diff --git a/yuthon_hr_employee/models/yuthon_hr_department.py b/yuthon_hr_employee/models/yuthon_hr_department.py index d304ee1fa..b712f99ba 100644 --- a/yuthon_hr_employee/models/yuthon_hr_department.py +++ b/yuthon_hr_employee/models/yuthon_hr_department.py @@ -38,12 +38,3 @@ class YuthonHrDepartment(models.Model): # # cycle_code(self, self.department_code) - @api.depends('name', 'parent_id') - def _compute_display_name(self): - for record in self: - if record.parent_id: - record.display_name = f"{record.name}({record.parent_id.name})" - else: - record.display_name = record.name - - diff --git a/yuthon_hr_employee/views/inherit_hr_job_views.xml b/yuthon_hr_employee/views/inherit_hr_job_views.xml index 9c99a483c..43e196b65 100644 --- a/yuthon_hr_employee/views/inherit_hr_job_views.xml +++ b/yuthon_hr_employee/views/inherit_hr_job_views.xml @@ -20,9 +20,6 @@ 1 - - -