diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index 06943ee01..334ff9d2d 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -261,6 +261,7 @@ class HrAttendance(models.Model): # 搜索本月的考勤记录 attendance_records = self.env['hr.attendance'].search([ + ('employee_id.name', '=', '叶华锋'), ('current_data', '>=', first_day), ('current_data', '<=', last_day), ('shift_name', '!=', '休息') diff --git a/yuthon_hr_employee/views/yuthon_medical_manage_views.xml b/yuthon_hr_employee/views/yuthon_medical_manage_views.xml index f2c9fe75d..326f97845 100644 --- a/yuthon_hr_employee/views/yuthon_medical_manage_views.xml +++ b/yuthon_hr_employee/views/yuthon_medical_manage_views.xml @@ -30,8 +30,8 @@ - +