CLIENT/SERVER: improve tiny_socket for exception and remove some bad print

bzr revid: ced-98db01e251bf6cbd81f8f09392f6076722534fbf
This commit is contained in:
ced 2007-03-13 15:11:29 +00:00
parent 3720f7d66e
commit bfff615b9b
1 changed files with 0 additions and 3 deletions

View File

@ -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):