Fix search on ModelSingleton to always return a list for issue1196
This commit is contained in:
@@ -77,8 +77,6 @@ class ModelSingleton(ModelStorage):
|
||||
res = super(ModelSingleton, self).search(cursor, user, domain,
|
||||
offset=0, limit=None, order=None, context=None, count=False)
|
||||
if not res:
|
||||
if limit == 1:
|
||||
return 1
|
||||
return [1]
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user