[FIX] hr_attendance : Correction on wizard of sign in/out [Ref: SaaS maintenance case 3896]

bzr revid: jvo@tinyerp.com-20110128090417-pw46529et3its2js
This commit is contained in:
Jay Vora (OpenERP)
2011-01-28 14:34:17 +05:30
parent 27847a9008
commit 9e1ecfac29
+1 -1
View File
@@ -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