Replace cursor fetchall by iteration over cursor
issue5817 review335831003
This commit is contained in:
1 parent
42793996be
commit
7363a5ec29
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user