Fix wrong value passed to super call
This commit is contained in:
1 parent
c4b9b9e6c4
commit
092196ba4b
1 file changed
+2
-1
@@ -84,7 +84,8 @@ class ModelSingleton(ModelStorage):
|
||||
def search(self, cursor, user, domain, offset=0, limit=None, order=None,
|
||||
context=None, count=False):
|
||||
res = super(ModelSingleton, self).search(cursor, user, domain,
|
||||
offset=0, limit=None, order=None, context=None, count=False)
|
||||
offset=offset, limit=limit, order=order, context=context,
|
||||
count=count)
|
||||
if not res:
|
||||
if count:
|
||||
return 1
|
||||
|
||||
Reference in new issue
Block a user