minor change
bzr revid: solanki.priyesh@gmail.com-20081211115052-oi8314q6m9kr5v8r
This commit is contained in:
parent
f741d23576
commit
ac68d17cc5
|
@ -71,8 +71,7 @@ class hr_attendance(osv.osv):
|
||||||
''' % (id, id)
|
''' % (id, id)
|
||||||
cr.execute(sql)
|
cr.execute(sql)
|
||||||
atts = cr.fetchall()
|
atts = cr.fetchall()
|
||||||
print "ATTS", atts
|
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 (atts[0][0] != atts[1][0] and atts[0][1] != atts[1][1]):
|
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue