[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:
Jeremy Kersten 2016-12-20 21:10:51 +01:00
parent 4203360528
commit 659d68add5
1 changed files with 1 additions and 1 deletions

View File

@ -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'