Use the same operator for zip, city and name in search_rec_name

This commit is contained in:
Cédric Krier committed 2009-06-23 17:12:04 +02:00
1 parent 6f2c4ba7b9
commit 72d7c04194
1 file changed
+2 -2
+2 -2
View File
@@ -91,8 +91,8 @@ class Address(ModelSQL, ModelView):
i = 0
while i < len(args):
ids = self.search(cursor, user, ['OR',
('zip', '=', args[i][2]),
('city', '=', args[i][2]),
('zip', args[i][1], args[i][2]),
('city', args[i][1], args[i][2]),
('name', args[i][1], args[i][2]),
], context=context)
if ids: