[REF] caldav
bzr revid: hmo@tinyerp.com-20100412120115-spckeb0vi08x6vvt
This commit is contained in:
parent
37a0b05a17
commit
9f5aa65624
|
@ -19,7 +19,7 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
import caldav
|
||||
import calendar
|
||||
import caldav_fs
|
||||
import wizard
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue