From bfff615b9b4b24d7f2786ac12ad93ea3671bcfff Mon Sep 17 00:00:00 2001 From: ced <> Date: Tue, 13 Mar 2007 15:11:29 +0000 Subject: [PATCH] CLIENT/SERVER: improve tiny_socket for exception and remove some bad print bzr revid: ced-98db01e251bf6cbd81f8f09392f6076722534fbf --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 2ae96f969dc..994b6f78a23 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -258,12 +258,10 @@ class hr_timesheet_line(osv.osv): self._check(cr, uid, ids) return super(hr_timesheet_line,self).unlink(cr, uid, ids,*args, **kwargs) def write(self, cr, uid, ids, *args, **kwargs): - print '2', args, kwargs self._check(cr, uid, ids) return super(hr_timesheet_line,self).write(cr, uid, ids,*args, **kwargs) def _check(self, cr, uid, ids): for att in self.browse(cr, uid, ids): - print att.sheet_id if att.sheet_id and att.sheet_id.state<>'draft': raise osv.except_osv('Error !', 'You can not modify an entry in a confirmed timesheet !') return True @@ -287,7 +285,6 @@ class hr_attendance(osv.osv): self._check(cr, uid, ids) return super(hr_attendance,self).unlink(cr, uid, ids,*args, **kwargs) def write(self, cr, uid, ids, *args, **kwargs): - print '1' self._check(cr, uid, ids) return super(hr_attendance,self).write(cr, uid, ids,*args, **kwargs) def _check(self, cr, uid, ids):