From ae052840798787bfb596b873aecaea073a08d53d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Fri, 17 Apr 2026 20:03:49 +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/models/yuthon_medical_manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_employee/models/yuthon_medical_manage.py b/yuthon_hr_employee/models/yuthon_medical_manage.py index 8a34fb430..b895fd02f 100644 --- a/yuthon_hr_employee/models/yuthon_medical_manage.py +++ b/yuthon_hr_employee/models/yuthon_medical_manage.py @@ -122,7 +122,7 @@ class YuthonMedicalManage(models.Model): '|', ('end_date', '>=', current_date), ('end_date', '=', False) ], order='start_date desc', limit=1) rule = valid_rules - target_companies = rule.party_ids.mapped('name') + target_companies = rule.party_ids.mapped('party') party_setting_records = self.env['yuthon.party.setting'].search([ ('party', 'in', target_companies) ]).ids