Replace cursor fetchall by iteration over cursor

issue5817
review335831003
This commit is contained in:
Cédric Krier committed 2021-03-21 16:09:13 +01:00
1 parent 42793996be
commit 7363a5ec29
1 file changed
+1 -1
+1 -1
View File
@@ -477,7 +477,7 @@ class Identifier(sequence_ordered(), ModelSQL, ModelView):
party.id, party.vat_number, party.vat_country,
where=(party.vat_number != Null)
| (party.vat_country != Null)))
for party_id, number, country in cursor.fetchall():
for party_id, number, country in cursor:
code = (country or '') + (number or '')
if not code:
continue