[IMP] improve condition
bzr revid: shp@tinyerp.com-20121019050621-kz81td0dsdt4681o
This commit is contained in:
parent
1bb1b98a31
commit
a098bdc7f1
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue