From 437b32a79ff3509549c644d77a81bb3649a45567 Mon Sep 17 00:00:00 2001 From: gaikaz Date: Wed, 18 Sep 2019 11:56:58 +0300 Subject: [PATCH] account_financial_report: fix Trial Balance line order --- account_financial_report/report/trial_balance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/account_financial_report/report/trial_balance.py b/account_financial_report/report/trial_balance.py index f20194b7..6696d0cc 100644 --- a/account_financial_report/report/trial_balance.py +++ b/account_financial_report/report/trial_balance.py @@ -75,8 +75,8 @@ class TrialBalanceReportAccount(models.TransientModel): ) hide_line = fields.Boolean(compute='_compute_hide_line') # Data fields, used to keep link with real object. - # Sequence is a Char later built with 'parent_path' for groups - # and parent_path + account code for accounts + # Sequence is a Char later built with 'code_prefix' for groups + # and code_prefix + account code for accounts sequence = fields.Char(index=True, default='1') level = fields.Integer(index=True, default=1) @@ -413,7 +413,7 @@ SELECT accgroup.parent_id, coalesce(accgroup.code_prefix, accgroup.name), accgroup.name, - accgroup.parent_path, + accgroup.code_prefix, accgroup.level FROM account_group accgroup"""