kernel: improve test ids for name_get
bzr revid: ced-8d20968ff269080c977a0fa1f5bccabb766f94c6
This commit is contained in:
+1
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user