Fix name_get of order_point if there is no ids
This commit is contained in:
1 parent
28193d3992
commit
91ba3771b5
1 file changed
+2
@@ -110,6 +110,8 @@ class OrderPoint(OSV):
|
||||
return not bool(ids)
|
||||
|
||||
def name_get(self, cursor, user, ids, context=None):
|
||||
if not ids:
|
||||
return []
|
||||
if isinstance(ids, (int, long)):
|
||||
ids = [ids]
|
||||
res = []
|
||||
|
||||
Reference in new issue
Block a user