Append parties with name matching to the parties with code matching
This commit is contained in:
1 parent
73fb756f3e
commit
3fa3be1fe2
1 file changed
+2
@@ -172,6 +172,8 @@ class Party(ModelSQL, ModelView):
|
||||
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