Skip to content

Commit

Permalink
[FIX] account trial balance: correctly selecting accounts with moveme…
Browse files Browse the repository at this point in the history
…nts(#17562)
  • Loading branch information
Yenthe666 authored and qdp-odoo committed Jun 22, 2017
1 parent a03fc2d commit d6751e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/account/report/account_balance.py
Expand Up @@ -50,7 +50,9 @@ def _get_accounts(self, accounts, display_account):
res['balance'] = account_result[account.id].get('balance')
if display_account == 'all':
account_res.append(res)
if display_account in ['movement', 'not_zero'] and not currency.is_zero(res['balance']):
if display_account == 'not_zero' and not currency.is_zero(res['balance']):
account_res.append(res)
if display_account == 'movement' and (not currency.is_zero(res['debit']) or not currency.is_zero(res['credit'])):
account_res.append(res)
return account_res

Expand Down

0 comments on commit d6751e5

Please sign in to comment.