From 7b1305ec28f8bb3ff672502be271adb878e73ff2 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Alomar Date: Fri, 26 Apr 2019 07:17:43 +0200 Subject: [PATCH] account_financial_report: add option to hide parent hierarchy levels --- account_financial_report/README.rst | 5 +++ account_financial_report/__manifest__.py | 2 +- .../i18n/account_financial_report.pot | 10 ++++- account_financial_report/i18n/ar.po | 10 ++++- account_financial_report/i18n/ca.po | 10 ++++- account_financial_report/i18n/de.po | 10 ++++- account_financial_report/i18n/es.po | 10 ++++- account_financial_report/i18n/fr.po | 10 ++++- account_financial_report/i18n/hr_HR.po | 10 ++++- account_financial_report/i18n/it.po | 10 ++++- account_financial_report/i18n/nl.po | 10 ++++- account_financial_report/i18n/nl_NL.po | 10 ++++- account_financial_report/i18n/pt.po | 10 ++++- account_financial_report/i18n/ro.po | 10 ++++- account_financial_report/readme/HISTORY.rst | 5 +++ .../report/trial_balance.py | 15 +++++-- .../static/description/index.html | 41 +++++++++++-------- .../wizard/trial_balance_wizard.py | 3 ++ .../wizard/trial_balance_wizard_view.xml | 1 + 19 files changed, 147 insertions(+), 45 deletions(-) diff --git a/account_financial_report/README.rst b/account_financial_report/README.rst index 200392b3..26c48ffc 100644 --- a/account_financial_report/README.rst +++ b/account_financial_report/README.rst @@ -50,6 +50,11 @@ currency balances are not available. Changelog ========= +11.0.2.5.0 (2019-04-26) +~~~~~~~~~~~~~~~~~~~~~~~ + +* In the Trial Balance you have an option to hide parent hierarchy levels + 11.0.2.4.1 (2019-01-08) ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/account_financial_report/__manifest__.py b/account_financial_report/__manifest__.py index b42d2894..59d023e7 100644 --- a/account_financial_report/__manifest__.py +++ b/account_financial_report/__manifest__.py @@ -4,7 +4,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Account Financial Reports', - 'version': '11.0.2.4.3', + 'version': '11.0.2.5.0', 'category': 'Reporting', 'summary': 'OCA Financial Reports', 'author': 'Camptocamp SA,' diff --git a/account_financial_report/i18n/account_financial_report.pot b/account_financial_report/i18n/account_financial_report.pot index a7122f1a..c0a1976c 100644 --- a/account_financial_report/i18n/account_financial_report.pot +++ b/account_financial_report/i18n/account_financial_report.pot @@ -869,6 +869,12 @@ msgstr "" msgid "Display foreign currency for move lines, unless account currency is not setup through chart of accounts will display initial and final balance in that currency." msgstr "" +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2157,7 +2163,7 @@ msgid "The Company in the General Ledger Report Wizard and in Date Range must be msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "The Company in the Trial Balance Report Wizard and in Date Range must be the same." msgstr "" @@ -2169,7 +2175,7 @@ msgid "The Company in the Vat Report Wizard and in Date Range must be the same." msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "" diff --git a/account_financial_report/i18n/ar.po b/account_financial_report/i18n/ar.po index 7e7974f1..eb29241c 100644 --- a/account_financial_report/i18n/ar.po +++ b/account_financial_report/i18n/ar.po @@ -883,6 +883,12 @@ msgid "" "that currency." msgstr "" +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2195,7 +2201,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2210,7 +2216,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "" diff --git a/account_financial_report/i18n/ca.po b/account_financial_report/i18n/ca.po index aac76686..87d10860 100644 --- a/account_financial_report/i18n/ca.po +++ b/account_financial_report/i18n/ca.po @@ -887,6 +887,12 @@ msgid "" "that currency." msgstr "" +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2188,7 +2194,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2203,7 +2209,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "" diff --git a/account_financial_report/i18n/de.po b/account_financial_report/i18n/de.po index 450e468a..43a903b9 100644 --- a/account_financial_report/i18n/de.po +++ b/account_financial_report/i18n/de.po @@ -903,6 +903,12 @@ msgstr "" "Währung über einen konfigurierten Kontenplan spezifiziert wurde, werden die " "Anfangs- und Endsalden in dieser Währung angezeigt." +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2222,7 +2228,7 @@ msgstr "" "identisch sein." #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2241,7 +2247,7 @@ msgstr "" "Unternehmen identisch sein." #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "Die ausgewählte Ebenenanzahl sollte >0 sein." diff --git a/account_financial_report/i18n/es.po b/account_financial_report/i18n/es.po index ce694af8..f07fcb6a 100644 --- a/account_financial_report/i18n/es.po +++ b/account_financial_report/i18n/es.po @@ -898,6 +898,12 @@ msgstr "" "moneda de la cuenta no esté configurada a través del plan de cuentas " "mostrará el saldo inicial y final en esa moneda." +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2209,7 +2215,7 @@ msgstr "" "fechas debe ser la misma." #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2228,7 +2234,7 @@ msgstr "" "ser la misma." #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "El nivel de jerarquía a filtrar debe ser mayor que 0." diff --git a/account_financial_report/i18n/fr.po b/account_financial_report/i18n/fr.po index 88e013ab..e8212a72 100644 --- a/account_financial_report/i18n/fr.po +++ b/account_financial_report/i18n/fr.po @@ -889,6 +889,12 @@ msgid "" "that currency." msgstr "" +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2191,7 +2197,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2206,7 +2212,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "" diff --git a/account_financial_report/i18n/hr_HR.po b/account_financial_report/i18n/hr_HR.po index d37485ba..ac2a1c31 100644 --- a/account_financial_report/i18n/hr_HR.po +++ b/account_financial_report/i18n/hr_HR.po @@ -891,6 +891,12 @@ msgid "" "that currency." msgstr "" +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2193,7 +2199,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2208,7 +2214,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "" diff --git a/account_financial_report/i18n/it.po b/account_financial_report/i18n/it.po index 06e7a436..6de232f0 100644 --- a/account_financial_report/i18n/it.po +++ b/account_financial_report/i18n/it.po @@ -888,6 +888,12 @@ msgid "" "that currency." msgstr "" +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2200,7 +2206,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2215,7 +2221,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "" diff --git a/account_financial_report/i18n/nl.po b/account_financial_report/i18n/nl.po index 34df1cae..ea6775a9 100644 --- a/account_financial_report/i18n/nl.po +++ b/account_financial_report/i18n/nl.po @@ -901,6 +901,12 @@ msgstr "" "ingesteld via het rekeningschema, wordt het begin- en eindsaldo in die " "valuta weergegeven." +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2228,7 +2234,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2243,7 +2249,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "" diff --git a/account_financial_report/i18n/nl_NL.po b/account_financial_report/i18n/nl_NL.po index b2769594..dc5056ae 100644 --- a/account_financial_report/i18n/nl_NL.po +++ b/account_financial_report/i18n/nl_NL.po @@ -890,6 +890,12 @@ msgid "" "that currency." msgstr "" +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2190,7 +2196,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2205,7 +2211,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "" diff --git a/account_financial_report/i18n/pt.po b/account_financial_report/i18n/pt.po index ddf9c9b2..ad3070ab 100644 --- a/account_financial_report/i18n/pt.po +++ b/account_financial_report/i18n/pt.po @@ -889,6 +889,12 @@ msgid "" "that currency." msgstr "" +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2191,7 +2197,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2206,7 +2212,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "" diff --git a/account_financial_report/i18n/ro.po b/account_financial_report/i18n/ro.po index 3147458d..b872845a 100644 --- a/account_financial_report/i18n/ro.po +++ b/account_financial_report/i18n/ro.po @@ -895,6 +895,12 @@ msgid "" "that currency." msgstr "" +#. module: account_financial_report +#: model:ir.model.fields,field_description:account_financial_report.field_report_trial_balance_hide_parent_hierarchy_level +#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard_hide_parent_hierarchy_level +msgid "Do not display parent levels" +msgstr "" + #. module: account_financial_report #: model:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines @@ -2207,7 +2213,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:161 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:163 #, python-format msgid "" "The Company in the Trial Balance Report Wizard and in Date Range must be the " @@ -2222,7 +2228,7 @@ msgid "" msgstr "" #. module: account_financial_report -#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:91 +#: code:addons/account_financial_report/wizard/trial_balance_wizard.py:93 #, python-format msgid "The hierarchy level to filter on must be greater than 0." msgstr "" diff --git a/account_financial_report/readme/HISTORY.rst b/account_financial_report/readme/HISTORY.rst index a9568b0b..1d53d794 100644 --- a/account_financial_report/readme/HISTORY.rst +++ b/account_financial_report/readme/HISTORY.rst @@ -1,3 +1,8 @@ +11.0.2.5.0 (2019-04-26) +~~~~~~~~~~~~~~~~~~~~~~~ + +* In the Trial Balance you have an option to hide parent hierarchy levels + 11.0.2.4.1 (2019-01-08) ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/account_financial_report/report/trial_balance.py b/account_financial_report/report/trial_balance.py index 43a5cb20..8e81dced 100644 --- a/account_financial_report/report/trial_balance.py +++ b/account_financial_report/report/trial_balance.py @@ -48,6 +48,8 @@ class TrialBalanceReport(models.TransientModel): limit_hierarchy_level = fields.Boolean('Limit hierarchy levels') show_hierarchy_level = fields.Integer('Hierarchy Levels to display', default=1) + hide_parent_hierarchy_level = fields.Boolean( + 'Do not display parent levels', default=False) # General Ledger Report Data fields, # used as base for compute the data reports general_ledger_id = fields.Many2one( @@ -136,9 +138,16 @@ class TrialBalanceReportAccount(models.TransientModel): and float_is_zero(rec.debit, precision_rounding=r) and float_is_zero(rec.credit, precision_rounding=r)): rec.hide_line = True - elif report.limit_hierarchy_level and \ - rec.level > report.show_hierarchy_level: - rec.hide_line = True + elif report.limit_hierarchy_level and report.show_hierarchy_level: + if report.hide_parent_hierarchy_level: + distinct_level = rec.level != report.show_hierarchy_level + if rec.account_group_id and distinct_level: + rec.hide_line = True + elif rec.level and distinct_level: + rec.hide_line = True + elif not report.hide_parent_hierarchy_level and \ + rec.level > report.show_hierarchy_level: + rec.hide_line = True class TrialBalanceReportPartner(models.TransientModel): diff --git a/account_financial_report/static/description/index.html b/account_financial_report/static/description/index.html index 85be46a7..efdc7d68 100644 --- a/account_financial_report/static/description/index.html +++ b/account_financial_report/static/description/index.html @@ -386,32 +386,39 @@ currency balances are not available.

Table of contents

-

Changelog

+

Changelog

-

11.0.2.4.1 (2019-01-08)

+

11.0.2.5.0 (2019-04-26)

+
    +
  • In the Trial Balance you have an option to hide parent hierarchy levels
  • +
+
+
+

11.0.2.4.1 (2019-01-08)

  • Handle better multicompany behaviour
  • Improve how title appears in the reports
  • Improve performance in General Ledger
-
-

11.0.2.3.1 (2018-11-29)

+
+

11.0.2.3.1 (2018-11-29)

  • In the Trial Balance you can apply a filter by hierarchy levels
  • In the General Ledger you can apply a filter by Analytic Tag
  • @@ -420,7 +427,7 @@ currency balances are not available.

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed @@ -428,9 +435,9 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Camptocamp SA
  • initOS GmbH
  • @@ -439,7 +446,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose diff --git a/account_financial_report/wizard/trial_balance_wizard.py b/account_financial_report/wizard/trial_balance_wizard.py index 655d4a1f..0a01535d 100644 --- a/account_financial_report/wizard/trial_balance_wizard.py +++ b/account_financial_report/wizard/trial_balance_wizard.py @@ -50,6 +50,8 @@ class TrialBalanceReportWizard(models.TransientModel): limit_hierarchy_level = fields.Boolean('Limit hierarchy levels') show_hierarchy_level = fields.Integer('Hierarchy Levels to display', default=1) + hide_parent_hierarchy_level = fields.Boolean( + 'Do not display parent levels', default=False) account_ids = fields.Many2many( comodel_name='account.account', string='Filter accounts', @@ -230,6 +232,7 @@ class TrialBalanceReportWizard(models.TransientModel): 'hierarchy_on': self.hierarchy_on, 'limit_hierarchy_level': self.limit_hierarchy_level, 'show_hierarchy_level': self.show_hierarchy_level, + 'hide_parent_hierarchy_level': self.hide_parent_hierarchy_level, 'show_partner_details': self.show_partner_details, } diff --git a/account_financial_report/wizard/trial_balance_wizard_view.xml b/account_financial_report/wizard/trial_balance_wizard_view.xml index a95d2acd..f2542f92 100644 --- a/account_financial_report/wizard/trial_balance_wizard_view.xml +++ b/account_financial_report/wizard/trial_balance_wizard_view.xml @@ -25,6 +25,7 @@ +