[FIX] hr_attendance: typo introduced at rev 1c9e8ba077b296ec9c334800915fbbf76c81310c
authorRichard Mathot <rim@openerp.com>
Tue, 22 Jul 2014 08:03:16 +0000 (10:03 +0200)
committerRichard Mathot <rim@openerp.com>
Tue, 22 Jul 2014 08:03:16 +0000 (10:03 +0200)
addons/hr_attendance/hr_attendance.py

index e171c0c..ade9192 100644 (file)
@@ -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