Use the same operator when searching for code in search_rec_name for issue1266

This commit is contained in:
Cédric Krier committed 2009-11-10 23:59:05 +01:00
1 parent 0515c8e977
commit 73fb756f3e
1 file changed
+1 -1
+1 -1
View File
@@ -169,7 +169,7 @@ class Party(ModelSQL, ModelView):
args2 = []
i = 0
while i < len(args):
ids = self.search(cursor, user, [('code', '=', args[i][2])],
ids = self.search(cursor, user, [('code', args[i][1], args[i][2])],
context=context)
if ids:
args2.append(('id', 'in', ids))