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

bzr revid: mtr@mtr-20110201092732-90wsc9y1yl3fx9ar
This commit is contained in:
jvo(Open ERP) 2011-02-01 14:57:32 +05:30 committed by mtr
parent 5b30009372
commit 91316c1ade
1 changed files with 1 additions and 1 deletions

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