[IMP] hr_holidays: improve English in error message

bzr revid: rco@openerp.com-20120427072913-fzjimxmt54poax6v
This commit is contained in:
Raphael Collet 2012-04-27 09:29:13 +02:00
parent 41057fed10
commit d75f80e0e9
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ class hr_holidays(osv.osv):
if record.employee_id and not record.holiday_status_id.limit:
leaves_rest = holi_status_obj.get_days( cr, uid, [record.holiday_status_id.id], record.employee_id.id, False)[record.holiday_status_id.id]['remaining_leaves']
if leaves_rest < record.number_of_days_temp:
raise osv.except_osv(_('Warning!'),_('There are no %s allocated for employee %s, Please create allocation request for this leave type.') % (record.holiday_status_id.name,record.employee_id.name))
raise osv.except_osv(_('Warning!'), _('There are not enough %s allocated for employee %s; please create an allocation request for this leave type.') % (record.holiday_status_id.name, record.employee_id.name))
return True
# -----------------------------