[FIX]crm_caldav: fix small problem
authorHarry (Open ERP) <hmo@tinyerp.com>
Thu, 11 Feb 2010 14:27:04 +0000 (19:57 +0530)
committerHarry (Open ERP) <hmo@tinyerp.com>
Thu, 11 Feb 2010 14:27:04 +0000 (19:57 +0530)
bzr revid: hmo@tinyerp.com-20100211142704-kozt6fslz6r42or1

addons/crm_caldav/crm_caldav.py

index a526947..a39088f 100644 (file)
 from osv import fields, osv
 from crm import crm
 from caldav import caldav
+from base_calendar import base_calendar
 class crm_meeting(osv.osv):   
     _inherit = 'crm.meeting'
 
     
 
     def export_cal(self, cr, uid, ids, context={}):
-        ids = map(lambda x: base_calendar_id2real_id(x), ids)
+        ids = map(lambda x: base_calendar.base_calendar_id2real_id(x), ids)
         event_data = self.read(cr, uid, ids)
         event_obj = self.pool.get('basic.calendar.event')
         ical = event_obj.export_cal(cr, uid, event_data, context={'model': self._name})