[REF] caldav

bzr revid: hmo@tinyerp.com-20100412120115-spckeb0vi08x6vvt
This commit is contained in:
Harry (Open ERP) 2010-04-12 17:31:15 +05:30
parent 37a0b05a17
commit 9f5aa65624
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
#
##############################################################################
import caldav
import calendar
import caldav_fs
import wizard

View File

@ -20,7 +20,7 @@
##############################################################################
from osv import fields, osv
from caldav import caldav
from caldav import calendar
class project_task(osv.osv):
_name = "project.task"
@ -52,7 +52,7 @@ class project_task(osv.osv):
hours = (val['planned_hours'].seconds / float(3600)) + \
(val['planned_hours'].days * 24)
val['planned_hours'] = hours
exists, r_id = caldav.uid2openobjectid(cr, val['id'], self._name, val.get('recurrent_id'))
exists, r_id = calendar.uid2openobjectid(cr, val['id'], self._name, val.get('recurrent_id'))
val.pop('id')
if exists:
self.write(cr, uid, [exists], val)