From 2cb7f564caab951186b78ca54c0cb1fd9cf53879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 23 Mar 2009 18:34:15 +0100 Subject: [PATCH] Don't call search with all arguments as we don't know the operator --- trytond/model/modelsql.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/trytond/model/modelsql.py b/trytond/model/modelsql.py index 430140345a..bd8a005089 100644 --- a/trytond/model/modelsql.py +++ b/trytond/model/modelsql.py @@ -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':