[FIX]: caldav: Fixed problem of writing data by Importing calendar

bzr revid: rpa@tinyerp.com-20100101061431-clzuvhl0xvoiy0ff
This commit is contained in:
rpa (Open ERP) 2010-01-01 11:44:31 +05:30
parent 2718baa106
commit 057cee7bcb
1 changed files with 7 additions and 3 deletions

View File

@ -172,9 +172,13 @@ class CalDAV(object):
continue
if cal_data.name.lower() in self.__attribute__:
self.ical_set(cal_data.name.lower(), cal_data.value, 'value')
vals = map_data(cr, uid, self)
if vals: res.append(vals)
self.ical_reset('value')
if child.name.lower() in ('vevent', 'vtodo'):
vals = map_data(cr, uid, self)
else:
vals = {}
continue
if vals: res.append(vals)
self.ical_reset('value')
return res