diff --git a/addons/hr_attendance/models/hr_employee.py b/addons/hr_attendance/models/hr_employee.py index 064278e0b2c..8dd238df67d 100644 --- a/addons/hr_attendance/models/hr_employee.py +++ b/addons/hr_attendance/models/hr_employee.py @@ -101,7 +101,7 @@ class HrEmployee(models.Model): hours = sum( att.worked_hours or 0 for att in employee.attendance_ids.filtered( - lambda att: att.check_in >= start_naive and att.check_out <= end_naive + lambda att: att.check_in >= start_naive and att.check_out and att.check_out <= end_naive ) )