From ee60a6ed52a7d6c1c3feeb26de5f889cf3548e4e Mon Sep 17 00:00:00 2001 From: "nch@tinyerp.com" <> Date: Tue, 15 Dec 2009 12:04:09 +0530 Subject: [PATCH] [FIX]:sometimes ids come in list format too bzr revid: nch@tinyerp.com-20091215063409-torqn4w49qj2tk18 --- addons/crm/crm_calendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/crm/crm_calendar.py b/addons/crm/crm_calendar.py index 24e755794cd..1254c04bd56 100644 --- a/addons/crm/crm_calendar.py +++ b/addons/crm/crm_calendar.py @@ -346,7 +346,7 @@ class ir_values(osv.osv): def set(self, cr, uid, key, key2, name, models, value, replace=True, isobject=False, meta=False, preserve_user=False, company=False): new_model = [] for data in models: - if isinstance(data,tuple): + if type(data) in (list,tuple): new_model.append((data[0],caldevIDs2readIDs(data[1]))) else: new_model.append(data) @@ -355,7 +355,7 @@ class ir_values(osv.osv): def get(self, cr, uid, key, key2, models, meta=False, context={}, res_id_req=False, without_user=True, key2_req=True): new_model = [] for data in models: - if isinstance(data,tuple): + if type(data) in (list,tuple): new_model.append((data[0],caldevIDs2readIDs(data[1]))) else: new_model.append(data)