[FIX] hr_timesheet_sheet: Improved Exception coming on Sign In and Sign Out buttons

lp bug: https://launchpad.net/bugs/74642 fixed

bzr revid: qdp-launchpad@openerp.com-20110420125521-p2js2tk3z7q5lw5t
This commit is contained in:
Quentin (OpenERP) 2011-04-20 14:55:21 +02:00
parent 9a5464529c
commit 290ef7ed6c
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ class hr_timesheet_sheet(osv.osv):
if context is None:
context = {}
if not sheet.date_current == time.strftime('%Y-%m-%d'):
raise osv.except_osv(_('Error !'), _('You can not sign in from an other date than today'))
raise osv.except_osv(_('Error !'), _('You cannot sign in/sign out from an other date than today'))
emp_id = sheet.employee_id.id
context['sheet_id']=ids[0]
emp_obj.attendance_action_change(cr, uid, [emp_id], type=typ, context=context,)