diff --git a/account.py b/account.py index 03c809146f..57f7f114b2 100644 --- a/account.py +++ b/account.py @@ -240,8 +240,7 @@ class Type(ModelSQL, ModelView): ('type', 'in', [t.id for t in childs]), ]) for account in accounts: - type_sum[account.type.id] += account.company.currency.round( - account.debit - account.credit) + type_sum[account.type.id] += account.balance for type_ in types: childs = cls.search([