添加功能
This commit is contained in:
@@ -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),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user