[Fix] fix buildbot warining

bzr revid: sbh@tinyerp.com-20101229092512-z20wd7o13tdrcb1w
This commit is contained in:
Sbh (OpenERP) 2010-12-29 14:55:12 +05:30
parent 42001ee76f
commit 2b91fe5af5
1 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ class hr_sign_in_out(osv.osv_memory):
self.pool.get('hr.attendance').create(cr, uid, {'name': data['last_time'], 'action': 'sign_out',
'employee_id': emp_id}, context=context)
try:
success = self.pool.get('hr.employee').attendance_action_change(cr, uid, [emp_id], 'sign_in')
self.pool.get('hr.employee').attendance_action_change(cr, uid, [emp_id], 'sign_in')
except:
raise osv.except_osv(_('UserError'), _('A sign-in must be right after a sign-out !'))
return {} # To do: Return Success message
@ -169,7 +169,7 @@ class hr_sign_in_out(osv.osv_memory):
raise osv.except_osv(_('UserError'), _('The Sign-in date must be in the past'))
self.pool.get('hr.attendance').create(cr, uid, {'name':data['last_time'], 'action':'sign_in', 'employee_id':emp_id}, context=context)
try:
success = self.pool.get('hr.employee').attendance_action_change(cr, uid, [emp_id], 'sign_out')
self.pool.get('hr.employee').attendance_action_change(cr, uid, [emp_id], 'sign_out')
except:
raise osv.except_osv(_('UserError'), _('A sign-out must be right after a sign-in !'))
return {} # To do: Return Success message