Append parties with name matching to the parties with code matching

This commit is contained in:
Cédric Krier committed 2009-11-11 00:02:57 +01:00
1 parent 73fb756f3e
commit 3fa3be1fe2
1 file changed
+2
+2
View File
@@ -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]))