[FIX] if ids not list then convert into list.

bzr revid: bth@tinyerp.com-20120831091414-u8xdai5zi5lamh65
This commit is contained in:
Bhumi Thakkar (Open ERP)
2012-08-31 14:44:14 +05:30
parent 4639967d0c
commit 2f93587bf5
+2
View File
@@ -54,6 +54,8 @@ class event_event(osv.osv):
def name_get(self, cr, uid, ids, context=None):
if not ids:
return []
if not isinstance(ids, list):
ids = [ids]
res = []
for record in self.browse(cr, uid, ids, context=context):
date = record.date_begin.split(" ")[0]