minor changed in hr_attendance
authorPriyesh <solanki.priyesh@gmail.com>
Mon, 8 Dec 2008 12:09:40 +0000 (17:39 +0530)
committerPriyesh <solanki.priyesh@gmail.com>
Mon, 8 Dec 2008 12:09:40 +0000 (17:39 +0530)
bzr revid: solanki.priyesh@gmail.com-20081208120940-tcyki05qw4c3u86o

addons/hr_attendance/hr_attendance.py

index dfa1e3a..6856193 100644 (file)
@@ -71,7 +71,8 @@ class hr_attendance(osv.osv):
             ''' % (id, id)
             cr.execute(sql)
             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])):
+            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]):
                 return False
         return True