[FIX]base_calendar: it raises error when we create calendar event while on which object the event is created does not have rrule and attendee_ids, that is availeble only with menu Event(calendar.event), problem is raised while we create saperate menu for calendar.alarm and create event for that because this object does not have these fields and throwing error
bzr revid: mma@tinyerp.com-20121123063831-usdpa5kqf2dpuxng
This commit is contained in:
parent
d9d127403b
commit
0c0ac94fb4
|
@ -824,7 +824,7 @@ class calendar_alarm(osv.osv):
|
|||
res_obj = model_obj.browse(cr, uid, alarm.res_id, context=context)
|
||||
re_dates = []
|
||||
|
||||
if res_obj.rrule:
|
||||
if hasattr(res_obj, 'rrule') and res_obj.rrule:
|
||||
event_date = datetime.strptime(res_obj.date, '%Y-%m-%d %H:%M:%S')
|
||||
recurrent_dates = get_recurrent_dates(res_obj.rrule, res_obj.exdate, event_date, res_obj.exrule)
|
||||
|
||||
|
|
Loading…
Reference in New Issue