From 9e1ecfac29f5769e9b4b563a84b652815698b37b Mon Sep 17 00:00:00 2001 From: "Jay Vora (OpenERP)" Date: Fri, 28 Jan 2011 14:34:17 +0530 Subject: [PATCH] [FIX] hr_attendance : Correction on wizard of sign in/out [Ref: SaaS maintenance case 3896] bzr revid: jvo@tinyerp.com-20110128090417-pw46529et3its2js --- 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 07ef528a7c9..7699e7468d9 100644 --- a/addons/hr_attendance/hr_attendance.py +++ b/addons/hr_attendance/hr_attendance.py @@ -75,7 +75,7 @@ class hr_attendance(osv.osv): LIMIT 2 ''' cr.execute(sql,(id,id)) atts = cr.fetchall() - if not ((len(atts)==1 and atts[0][0] == 'sign_in') or (atts[0][0] != atts[1][0] and atts[0][1] != atts[1][1])): + if not ((len(atts)==1 and atts[0][0] == 'sign_in') or (len(atts)==2 and atts[0][0] != atts[1][0] and atts[0][1] != atts[1][1])): return False return True