From ac68d17cc5c8b0063bc781a2dca1a495baf6f153 Mon Sep 17 00:00:00 2001 From: Priyesh Date: Thu, 11 Dec 2008 17:20:52 +0530 Subject: [PATCH] minor change bzr revid: solanki.priyesh@gmail.com-20081211115052-oi8314q6m9kr5v8r --- addons/hr_attendance/hr_attendance.py | 3 +-- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/hr_attendance/hr_attendance.py b/addons/hr_attendance/hr_attendance.py index 68561933b0a..dfa1e3a7635 100644 --- a/addons/hr_attendance/hr_attendance.py +++ b/addons/hr_attendance/hr_attendance.py @@ -71,8 +71,7 @@ class hr_attendance(osv.osv): ''' % (id, id) cr.execute(sql) 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 True diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 114a4a72997..4c522f0c3e3 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -635,7 +635,7 @@ class hr_timesheet_sheet_sheet_account(osv.osv): 'sheet_id': fields.many2one('hr_timesheet_sheet.sheet', 'Sheet', readonly=True), 'total': fields.float('Total Time', digits=(16,2), readonly=True), 'invoice_rate': fields.many2one('hr_timesheet_invoice.factor', 'Invoice rate', readonly=True), - } + } def init(self, cr): cr.execute("""create or replace view hr_timesheet_sheet_sheet_account as (