[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user