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

bzr revid: mra@mra-laptop-20110201094951-kxo6s81w27pdv2yx
This commit is contained in:
Mustufa Rangwala
2011-02-01 15:19:51 +05:30
+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