Fix Property fields for new list of names behavior
This commit is contained in:
1 parent
32078c678e
commit
4da51389a2
1 file changed
+7
@@ -686,6 +686,13 @@ class Property(Function):
|
||||
|
||||
def get(self, cursor, obj, ids, name, user=None, offset=0, context=None,
|
||||
values=None):
|
||||
if isinstance(name, list):
|
||||
names = name
|
||||
res = {}
|
||||
for name in names:
|
||||
res[name] = self._fnct_read(obj, cursor, user, ids, name,
|
||||
self._arg, context=context)
|
||||
return res
|
||||
return self._fnct_read(obj, cursor, user, ids, name, self._arg,
|
||||
context=context)
|
||||
|
||||
|
||||
Reference in new issue
Block a user