Fix typo for issue946

This commit is contained in:
Cédric Krier committed 2009-04-07 18:55:29 +02:00
1 parent 0073d7ee7c
commit dd836a4a92
1 file changed
+1 -1
+1 -1
View File
@@ -621,7 +621,7 @@ class Sale(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)
args2.append(('reference', args[i][1], names[0]))
if len(names) != 1 and names[1]: