Fix typo for issue946

This commit is contained in:
Cédric Krier committed 2009-04-07 19:33:56 +02:00
1 parent c67465e6c5
commit d3728af7d9
1 file changed
+1 -1
+1 -1
View File
@@ -573,7 +573,7 @@ class Purchase(ModelWorkflow, ModelSQL, ModelView):
def search_rec_name(self, cursor, user, name, args, context=None):
args2 = []
i = 0
while i < lend(args):
while i < len(args):
names = args[i][2].split(' - ', 1)
ids = self.search(cursor, user, ['OR',
('reference', args[i][1], names[0]),