changeset 508fd56d0ae5 in modules/party:default
details: https://hg.tryton.org/modules/party?cmd=changeset&node=508fd56d0ae5
description:
Replace cursor fetchall by iteration over cursor
issue5817
review335831003
diffstat:
party.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r f8a3b95009da -r 508fd56d0ae5 party.py
--- a/party.py Thu Mar 18 22:36:31 2021 +0100
+++ b/party.py Sun Mar 21 16:09:13 2021 +0100
@@ -477,7 +477,7 @@
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