fix check value param self.hierarchy for account grouping

pull/749/head
Lara Baggio 2019-05-14 18:09:47 +02:00 committed by João Marques
parent 3d8876c086
commit 9177edf82a
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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