[FIX] crm : search method for crm meeting to get recurrent ids
authorHarry (Open ERP) <hmo@tinyerp.com>
Tue, 12 Jan 2010 06:06:10 +0000 (11:36 +0530)
committerHarry (Open ERP) <hmo@tinyerp.com>
Tue, 12 Jan 2010 06:06:10 +0000 (11:36 +0530)
bzr revid: hmo@tinyerp.com-20100112060610-roqg1ggtuvc2uuon

addons/crm/crm_meeting.py

index 6bf9c42..27e04f8 100644 (file)
@@ -293,9 +293,11 @@ class crm_meeting(osv.osv):
                         idval = common.real_id2caldav_id(data['id'], rdate)
                         result.append(idval)
                         count += 1
+        if result:
+            ids = result
         if isinstance(select, (str, int, long)):
-            return result and result[0] or False
-        return result
+            return ids and ids[0] or False
+        return ids
 
     def search(self, cr, uid, args, offset=0, limit=100, order=None,
             context=None, count=False):