diff --git a/hr_attendance_autoclose/models/hr_attendance.py b/hr_attendance_autoclose/models/hr_attendance.py index 5c361d486ea..f95dcc9c72e 100644 --- a/hr_attendance_autoclose/models/hr_attendance.py +++ b/hr_attendance_autoclose/models/hr_attendance.py @@ -10,6 +10,7 @@ class HrAttendance(models.Model): _inherit = "hr.attendance" @api.multi + @api.depends('check_out', 'check_in') def _compute_open_worked_hours(self): for attendance in self: if attendance.check_out: