Improve test in ids

This commit is contained in:
Cédric Krier committed 2008-07-02 12:25:25 +02:00
1 parent 867fd69076
commit 267e36268f
1 file changed
+1 -2
+1 -2
View File
@@ -37,8 +37,7 @@ class Category(OSV):
return dict(res)
def name_get(self, cursor, user, ids, context=None):
if not len(ids):
if not ids:
return []
categories = self.browse(cursor, user, ids, context=context)
res = []