From 5392030784a14b2b5e28986deb5695eceedeebba Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Fri, 22 Nov 2024 20:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_employee_approval/models/inherit_hr_job.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/yuthon_hr_employee_approval/models/inherit_hr_job.py b/yuthon_hr_employee_approval/models/inherit_hr_job.py index 82fd76dce..677ec8594 100644 --- a/yuthon_hr_employee_approval/models/inherit_hr_job.py +++ b/yuthon_hr_employee_approval/models/inherit_hr_job.py @@ -67,11 +67,3 @@ class HrJob(models.Model): 'default_adjust_information_ids': hr_job_list, } } - - @api.depends('name', 'department_id') - def _compute_display_name(self): - for record in self: - if record.department_id: - record.display_name = f"{record.name}({record.department_id.name})" - else: - record.display_name = record.name \ No newline at end of file