From 290ef7ed6c8f1c030aaceb4338652fa60e6b0695 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 20 Apr 2011 14:55:21 +0200 Subject: [PATCH] [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 --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 23ab63247e5..5a899555e5d 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -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,)