From e1ccf35ae00d13a15d0652dccfb9a24f46a7f3b2 Mon Sep 17 00:00:00 2001 From: mreficent Date: Thu, 28 Nov 2019 19:15:27 +0100 Subject: [PATCH] [FIX] compute needs api.depends --- hr_attendance_autoclose/models/hr_attendance.py | 1 + 1 file changed, 1 insertion(+) 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: