diff options
| author | rpa (Open ERP) <rpa@tinyerp.com> | 2010-04-29 18:41:04 +0530 |
|---|---|---|
| committer | rpa (Open ERP) <rpa@tinyerp.com> | 2010-04-29 18:41:04 +0530 |
| commit | 9d4e369c847ce2bd696bdeb9d356e6d2d72f313d (patch) | |
| tree | abb19ee9085afc64eae1c5510cb356d1b01a35e1 | |
| parent | 69dc656f512a1f98495ba7e78948e89647fea171 (diff) | |
[FIX]: crm_caldav: Fixed some import problems
bzr revid: rpa@tinyerp.com-20100429131104-ivu0wx6ljcesz8ah
| -rw-r--r-- | addons/crm_caldav/crm_caldav.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/crm_caldav/crm_caldav.py b/addons/crm_caldav/crm_caldav.py index ffa05577360..3c3e8b8ae2e 100644 --- a/addons/crm_caldav/crm_caldav.py +++ b/addons/crm_caldav/crm_caldav.py @@ -21,6 +21,8 @@ from osv import fields, osv from crm import crm +from caldav import calendar +from datetime import datetime class crm_meeting(osv.osv): _inherit = 'crm.meeting' @@ -67,7 +69,7 @@ class crm_meeting(osv.osv): recur_pool = {} try: for val in vals: - exists, r_id = caldav.uid2openobjectid(cr, val['id'], context.get('model'), \ + exists, r_id = calendar.uid2openobjectid(cr, val['id'], context.get('model'), \ val.get('recurrent_id')) if val.has_key('create_date'): val.pop('create_date') u_id = val.get('id', None) @@ -101,3 +103,4 @@ class crm_meeting(osv.osv): crm_meeting() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: + |
