添加功能

This commit is contained in:
李鹏宇
2025-09-25 11:16:24 +08:00
parent 75aa8a8a97
commit ec79d4a92b
@@ -252,7 +252,7 @@ class OvertimeApprovals(models.Model):
start_date = fields.Date.to_date(self.start_time)
end_date = fields.Date.to_date(self.end_time)
attendance_records = self.env['hr.attendance'].search([
('employee_id', '=', employee_id),
('employee_id', '=', employee_id.id),
('current_data', '>=', start_date),
('current_data', '<=', end_date),
])