agenda: holiday type displayed in user agenda

This commit is contained in:
Serghei Mihai 2013-12-19 18:40:41 +01:00
parent 5043c7f706
commit e969d52a42
No known key found for this signature in database
GPG Key ID: 76D1C964BF2FA1AF
1 changed files with 5 additions and 1 deletions

View File

@ -164,7 +164,11 @@ def get_daily_appointments(date, worker, service, time_tables, events, holidays)
delta_minutes = delta.seconds / 60
appointment = Appointment()
appointment.type = 'busy-here'
label = u"Congé (%s)" % holiday.holiday_type.name
label = None
if not holiday.worker:
label = u"Absence de groupe : %s" % holiday.holiday_type.name
else:
label = u"Absence indiv. : %s" % holiday.holiday_type.name
appointment.init_holiday_time(label,
delta_minutes,
time(interval.lower_bound.hour, interval.lower_bound.minute),