From 8431b705979fc73639ac04c602e8d647c8a49973 Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Sat, 11 Sep 2010 17:14:42 +0530 Subject: [PATCH] [FIX] caldav: fix bzr revid: hmo@tinyerp.com-20100911114442-egfc63paqr93rdpc --- addons/caldav/calendar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/caldav/calendar.py b/addons/caldav/calendar.py index 9a4e948cbe1..01c35880fbb 100644 --- a/addons/caldav/calendar.py +++ b/addons/caldav/calendar.py @@ -186,6 +186,8 @@ def map_data(cr, uid, obj, context=None): if field_type == 'selection': if not map_val: continue + if type(map_val) == list and len(map_val): #TOFIX: why need to check this + map_val = map_val[0] mapping = obj.__attribute__[map_dict].get('mapping', False) if mapping: map_val = mapping.get(map_val.lower(), False)