Don't call search with all arguments as we don't know the operator

This commit is contained in:
Cédric Krier committed 2009-03-23 18:34:15 +01:00
1 parent 5f93f1583c
commit 2cb7f564ca
1 file changed
-6
-6
View File
@@ -1104,12 +1104,6 @@ class ModelSQL(ModelStorage):
'doesn\'t work on "%s"' % (domain[i][0], self._name))
if hasattr(field, 'search'):
arg = [domain.pop(i)]
j = i
while j < len(domain):
if domain[j][0] == arg[0][0]:
arg.append(domain.pop(j))
else:
j += 1
domain.extend(field.search(cursor, user, table,
arg[0][0], arg, context=context))
elif field._type == 'one2many':