From 91316c1ade95957057ac63f192f7935d538c6aec Mon Sep 17 00:00:00 2001 From: "jvo(Open ERP)" <> Date: Tue, 1 Feb 2011 14:57:32 +0530 Subject: [PATCH] [FIX] hr_attendance : Correction on wizard of sign in/out [Ref: SaaS maintenance case 3896] bzr revid: mtr@mtr-20110201092732-90wsc9y1yl3fx9ar --- addons/hr_attendance/hr_attendance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_attendance/hr_attendance.py b/addons/hr_attendance/hr_attendance.py index 07ef528a7c9..7699e7468d9 100644 --- a/addons/hr_attendance/hr_attendance.py +++ b/addons/hr_attendance/hr_attendance.py @@ -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