diff options
| author | Harry (Open ERP) <hmo@tinyerp.com> | 2010-01-12 11:36:10 +0530 |
|---|---|---|
| committer | Harry (Open ERP) <hmo@tinyerp.com> | 2010-01-12 11:36:10 +0530 |
| commit | 4b86fafb0eca8dcc40c2cda9bc85cb6380d1ec22 (patch) | |
| tree | 0db540f2d12bfa45e85367110fa8d0cc2e652330 /addons | |
| parent | b663b4518fa927de4d2a8e1481a1ea66979f86ef (diff) | |
[FIX] crm : search method for crm meeting to get recurrent ids
bzr revid: hmo@tinyerp.com-20100112060610-roqg1ggtuvc2uuon
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/crm/crm_meeting.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/crm/crm_meeting.py b/addons/crm/crm_meeting.py index 6bf9c42ac94..27e04f86cfc 100644 --- a/addons/crm/crm_meeting.py +++ b/addons/crm/crm_meeting.py @@ -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): |
