mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[IMP] replace range by xrange to avoid to build the full list when an anticipated break may stop the iteration
This commit is contained in:
@@ -41,7 +41,7 @@ class easy_reconcile_simple(AbstractModel):
|
||||
count = 0
|
||||
res = []
|
||||
while (count < len(lines)):
|
||||
for i in range(count+1, len(lines)):
|
||||
for i in xrange(count+1, len(lines)):
|
||||
writeoff_account_id = False
|
||||
if lines[count][self._key_field] != lines[i][self._key_field]:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user