Improve test in ids
This commit is contained in:
1 parent
867fd69076
commit
267e36268f
1 file changed
+1
-2
+1
-2
@@ -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 = []
|
||||
|
||||
Reference in new issue
Block a user