merge
This commit is contained in:
@@ -169,9 +169,11 @@ 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:
|
||||
ids += self.search(cursor, user,
|
||||
[('name', args[i][1], args[i][2])], context=context)
|
||||
args2.append(('id', 'in', ids))
|
||||
else:
|
||||
args2.append(('name', args[i][1], args[i][2]))
|
||||
|
||||
Reference in New Issue
Block a user