[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:
parent
5b30009372
commit
91316c1ade
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue