diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index 178381208..456ec0e79 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -610,7 +610,7 @@ class HolidaysRequestBatch(models.Model): :param end_date: 结束时间 :return: """ - workflow_id = self.env['soong.workflow.record'].search([('code', '=', code)], limit=1).id + workflow_id = self.env['soong.workflow.record'].search([('code', '=', code)], limit=1) attendance_records = self.env['hr.attendance'].search([ ('employee_id', '=', employee_id.id), ('current_data', '>=', start_date),