Use the same operator for zip, city and name in search_rec_name
This commit is contained in:
1 parent
6f2c4ba7b9
commit
72d7c04194
1 file changed
+2
-2
+2
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user