diff --git a/yuthon_hr_attendance/models/go_approval.py b/yuthon_hr_attendance/models/go_approval.py index bcdacf38f..bea068b3d 100644 --- a/yuthon_hr_attendance/models/go_approval.py +++ b/yuthon_hr_attendance/models/go_approval.py @@ -197,7 +197,7 @@ class GoApprovals(models.Model): # 3.1 查询当月的vacation_reports记录 reports_id = self.env['yuthon.vacation.reports'].search([ - ('employee_id', '=', self.users_id.employee_id.id), + ('employee_id', '=', self.users_id.employee_ids.id), ('vacation_date', '=', month_first) ], limit=1)