[FIX] calendar: fix retrocompatibility between datetime module
Fix datetime where the return of rrule is sometime a list, sometime a set according to the datetime version. list(set) == list(list) and works in both cases. Similar fix: #9f09c62
This commit is contained in:
parent
4203360528
commit
659d68add5
|
@ -1349,7 +1349,7 @@ class calendar_event(osv.Model):
|
|||
data['rrule_type'] = 'monthly'
|
||||
|
||||
if r._bymonthday:
|
||||
data['day'] = r._bymonthday[0]
|
||||
data['day'] = list(r._bymonthday)[0]
|
||||
data['month_by'] = 'date'
|
||||
data['rrule_type'] = 'monthly'
|
||||
|
||||
|
|
Loading…
Reference in New Issue