kernel: improve test ids for name_get

bzr revid: ced-8d20968ff269080c977a0fa1f5bccabb766f94c6
This commit is contained in:
ced
2007-07-19 13:36:23 +00:00
parent 9fc4346887
commit 304cccc36d
+1 -1
View File
@@ -1635,7 +1635,7 @@ class orm(object):
return self._columns[field].search(cr, self, args, field, value, offset, limit, uid)
def name_get(self, cr, user, ids, context={}):
if not len(ids):
if not ids:
return []
if isinstance(ids, (int, long)):
ids = [ids]