From 005282014acfb372f9b5549929931c05021a3bdf Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Tue, 22 Jul 2014 10:03:16 +0200 Subject: [PATCH] [FIX] hr_attendance: typo introduced at rev 1c9e8ba077b296ec9c334800915fbbf76c81310c --- addons/hr_attendance/hr_attendance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_attendance/hr_attendance.py b/addons/hr_attendance/hr_attendance.py index e171c0c79c2..ade9192941c 100644 --- a/addons/hr_attendance/hr_attendance.py +++ b/addons/hr_attendance/hr_attendance.py @@ -61,7 +61,7 @@ class hr_attendance(osv.osv): ('employee_id', '=', obj.employee_id.id), ('name', '<', obj.name), ('action', '=', 'sign_in') ], limit=1, order='name DESC') - if last_signin: + if last_signin_id: last_signin = self.browse(cr, uid, last_signin_id, context=context)[0] # Compute time elapsed between sign-in and sign-out