diff --git a/account_financial_report/README.rst b/account_financial_report/README.rst
index 305afa6f..f4f1f9c3 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 35d649d6..f5e69816 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 fb30e407..2ea44303 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 1d35d1e0..4d64d5f1 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 47b2b28d..5f9f48b8 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 1dcf4c4e..6c0e5e0a 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 4969a464..fcbe0922 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 895dd9de..dc018598 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 14c9cc2c..0f9b2945 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 1d54c205..4987f5f4 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 6ec11944..86caf9aa 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 bb807596..3dccff3d 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 5441bb08..a760abda 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 cdc0b0f0..114df9cf 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 b83e7ebf..d628840c 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
-
+
-
+
+
+- In the Trial Balance you have an option to hide parent hierarchy levels
+
+
+
+
- Handle better multicompany behaviour
- Improve how title appears in the reports
- Improve performance in General Ledger
-
-
+
+
- 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.
-
+
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.
-
+
-
+
- Camptocamp SA
- initOS GmbH
@@ -439,7 +446,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
-
+
This module is maintained by the OCA.
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 @@
+