Replace cursor fetchall by iteration over cursor
issue5817 review335831003
This commit is contained in:
1 parent
41046ffda9
commit
b731a1514c
1 file changed
+1
-1
@@ -60,7 +60,7 @@ class Party(metaclass=PoolMeta):
|
||||
& (account.company == user.company.id)
|
||||
& line_clause,
|
||||
group_by=line.party))
|
||||
for party_id, value in cursor.fetchall():
|
||||
for party_id, value in cursor:
|
||||
# SQLite uses float for SUM
|
||||
if not isinstance(value, Decimal):
|
||||
value = currency.round(Decimal(str(value)))
|
||||
|
||||
Reference in new issue
Block a user