diff options
| author | nch@tinyerp.com <> | 2009-12-15 12:04:09 +0530 |
|---|---|---|
| committer | nch@tinyerp.com <> | 2009-12-15 12:04:09 +0530 |
| commit | ee60a6ed52a7d6c1c3feeb26de5f889cf3548e4e (patch) | |
| tree | ecac0b3754826744c3249a86e891cbe28ca41913 /addons | |
| parent | cd5daff908fd44a70887d8b6470fcce6b0ed1ec0 (diff) | |
[FIX]:sometimes ids come in list format too
bzr revid: nch@tinyerp.com-20091215063409-torqn4w49qj2tk18
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/crm/crm_calendar.py | 4 |
1 files 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) |
