[IMP] improve condition

bzr revid: shp@tinyerp.com-20121019050621-kz81td0dsdt4681o
This commit is contained in:
pankita shah (Open ERP) 2012-10-19 10:36:21 +05:30
parent 1bb1b98a31
commit a098bdc7f1
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class hr_employee(osv.osv):
if not self._action_check(cr, uid, employee.id, action_date, context):
if action == 'sign_out':
raise osv.except_osv(_('Warning'), _('You are trying to sign out for a date that comes before the starting date of the project. Please contact the HR Manager to correct attendances.'))
elif action == 'action':
if action == 'action':
raise osv.except_osv(_('Warning'), _('You are trying to sign out and switch project for a date that comes before the starting date of the current project. Please contact the HR Manager to correct attendances.'))
vals = {'action': action, 'employee_id': employee.id}