Browse Source

fix check value param self.hierarchy for account grouping

pull/559/head
Lara Baggio 6 years ago
committed by Pedro M. Baeza
parent
commit
6cf659253b
  1. 2
      account_financial_report/report/trial_balance.py
  2. 2
      account_financial_report/tests/test_trial_balance.py

2
account_financial_report/report/trial_balance.py

@ -572,7 +572,7 @@ WHERE newline.account_group_id = report_trial_balance_account.parent_id
groups = self.account_ids.filtered(
lambda a: a.account_group_id is not False)
for group in groups:
if self.hierarchy_on == 'compute':
if self.hierarchy_on == 'computed':
group.compute_account_ids = \
group.account_group_id.compute_account_ids
else:

2
account_financial_report/tests/test_trial_balance.py

@ -326,7 +326,7 @@ class TestTrialBalanceReport(common.TransactionCase):
self.assertEqual(lines['group2'].debit, 2000)
self.assertEqual(lines['group2'].credit, 0)
self.assertEqual(lines['group2'].final_balance, 2000)
self.assertEqual(len(lines['group2'].compute_account_ids), 2)
self.assertEqual(len(lines['group2'].compute_account_ids), 9)
def test_02_account_balance_hierarchy(self):
# Generate the general ledger line

Loading…
Cancel
Save