Browse Source

account_financial_report: add option to hide parent hierarchy levels

pull/663/head
Jordi Ballester Alomar 5 years ago
committed by Ernesto Tejeda
parent
commit
7b1305ec28
  1. 5
      account_financial_report/README.rst
  2. 2
      account_financial_report/__manifest__.py
  3. 10
      account_financial_report/i18n/account_financial_report.pot
  4. 10
      account_financial_report/i18n/ar.po
  5. 10
      account_financial_report/i18n/ca.po
  6. 10
      account_financial_report/i18n/de.po
  7. 10
      account_financial_report/i18n/es.po
  8. 10
      account_financial_report/i18n/fr.po
  9. 10
      account_financial_report/i18n/hr_HR.po
  10. 10
      account_financial_report/i18n/it.po
  11. 10
      account_financial_report/i18n/nl.po
  12. 10
      account_financial_report/i18n/nl_NL.po
  13. 10
      account_financial_report/i18n/pt.po
  14. 10
      account_financial_report/i18n/ro.po
  15. 5
      account_financial_report/readme/HISTORY.rst
  16. 15
      account_financial_report/report/trial_balance.py
  17. 41
      account_financial_report/static/description/index.html
  18. 3
      account_financial_report/wizard/trial_balance_wizard.py
  19. 1
      account_financial_report/wizard/trial_balance_wizard_view.xml

5
account_financial_report/README.rst

@ -50,6 +50,11 @@ currency balances are not available.
Changelog 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) 11.0.2.4.1 (2019-01-08)
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~

2
account_financial_report/__manifest__.py

@ -4,7 +4,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
'name': 'Account Financial Reports', 'name': 'Account Financial Reports',
'version': '11.0.2.4.3',
'version': '11.0.2.5.0',
'category': 'Reporting', 'category': 'Reporting',
'summary': 'OCA Financial Reports', 'summary': 'OCA Financial Reports',
'author': 'Camptocamp SA,' 'author': 'Camptocamp SA,'

10
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." 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 "" 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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_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 "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The Company in the Trial Balance Report Wizard and in Date Range must be the same." msgid "The Company in the Trial Balance Report Wizard and in Date Range must be the same."
msgstr "" msgstr ""
@ -2169,7 +2175,7 @@ msgid "The Company in the Vat Report Wizard and in Date Range must be the same."
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "" msgstr ""

10
account_financial_report/i18n/ar.po

@ -883,6 +883,12 @@ msgid ""
"that currency." "that currency."
msgstr "" 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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2195,7 +2201,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2210,7 +2216,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "" msgstr ""

10
account_financial_report/i18n/ca.po

@ -887,6 +887,12 @@ msgid ""
"that currency." "that currency."
msgstr "" 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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2188,7 +2194,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2203,7 +2209,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "" msgstr ""

10
account_financial_report/i18n/de.po

@ -903,6 +903,12 @@ msgstr ""
"Währung über einen konfigurierten Kontenplan spezifiziert wurde, werden die " "Währung über einen konfigurierten Kontenplan spezifiziert wurde, werden die "
"Anfangs- und Endsalden in dieser Währung angezeigt." "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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2222,7 +2228,7 @@ msgstr ""
"identisch sein." "identisch sein."
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2241,7 +2247,7 @@ msgstr ""
"Unternehmen identisch sein." "Unternehmen identisch sein."
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "Die ausgewählte Ebenenanzahl sollte >0 sein." msgstr "Die ausgewählte Ebenenanzahl sollte >0 sein."

10
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 " "moneda de la cuenta no esté configurada a través del plan de cuentas "
"mostrará el saldo inicial y final en esa moneda." "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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2209,7 +2215,7 @@ msgstr ""
"fechas debe ser la misma." "fechas debe ser la misma."
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2228,7 +2234,7 @@ msgstr ""
"ser la misma." "ser la misma."
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." 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." msgstr "El nivel de jerarquía a filtrar debe ser mayor que 0."

10
account_financial_report/i18n/fr.po

@ -889,6 +889,12 @@ msgid ""
"that currency." "that currency."
msgstr "" 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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2191,7 +2197,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2206,7 +2212,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "" msgstr ""

10
account_financial_report/i18n/hr_HR.po

@ -891,6 +891,12 @@ msgid ""
"that currency." "that currency."
msgstr "" 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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2193,7 +2199,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2208,7 +2214,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "" msgstr ""

10
account_financial_report/i18n/it.po

@ -888,6 +888,12 @@ msgid ""
"that currency." "that currency."
msgstr "" 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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2200,7 +2206,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2215,7 +2221,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "" msgstr ""

10
account_financial_report/i18n/nl.po

@ -901,6 +901,12 @@ msgstr ""
"ingesteld via het rekeningschema, wordt het begin- en eindsaldo in die " "ingesteld via het rekeningschema, wordt het begin- en eindsaldo in die "
"valuta weergegeven." "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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2228,7 +2234,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2243,7 +2249,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "" msgstr ""

10
account_financial_report/i18n/nl_NL.po

@ -890,6 +890,12 @@ msgid ""
"that currency." "that currency."
msgstr "" 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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2190,7 +2196,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2205,7 +2211,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "" msgstr ""

10
account_financial_report/i18n/pt.po

@ -889,6 +889,12 @@ msgid ""
"that currency." "that currency."
msgstr "" 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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2191,7 +2197,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2206,7 +2212,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "" msgstr ""

10
account_financial_report/i18n/ro.po

@ -895,6 +895,12 @@ msgid ""
"that currency." "that currency."
msgstr "" 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 #. 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_aged_partner_balance_move_lines
#: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines #: model:ir.ui.view,arch_db:account_financial_report.report_open_items_lines
@ -2207,7 +2213,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "" msgid ""
"The Company in the Trial Balance Report Wizard and in Date Range must be the " "The Company in the Trial Balance Report Wizard and in Date Range must be the "
@ -2222,7 +2228,7 @@ msgid ""
msgstr "" msgstr ""
#. module: account_financial_report #. 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 #, python-format
msgid "The hierarchy level to filter on must be greater than 0." msgid "The hierarchy level to filter on must be greater than 0."
msgstr "" msgstr ""

5
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) 11.0.2.4.1 (2019-01-08)
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~

15
account_financial_report/report/trial_balance.py

@ -48,6 +48,8 @@ class TrialBalanceReport(models.TransientModel):
limit_hierarchy_level = fields.Boolean('Limit hierarchy levels') limit_hierarchy_level = fields.Boolean('Limit hierarchy levels')
show_hierarchy_level = fields.Integer('Hierarchy Levels to display', show_hierarchy_level = fields.Integer('Hierarchy Levels to display',
default=1) default=1)
hide_parent_hierarchy_level = fields.Boolean(
'Do not display parent levels', default=False)
# General Ledger Report Data fields, # General Ledger Report Data fields,
# used as base for compute the data reports # used as base for compute the data reports
general_ledger_id = fields.Many2one( 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.debit, precision_rounding=r)
and float_is_zero(rec.credit, precision_rounding=r)): and float_is_zero(rec.credit, precision_rounding=r)):
rec.hide_line = True 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): class TrialBalanceReportPartner(models.TransientModel):

41
account_financial_report/static/description/index.html

@ -386,32 +386,39 @@ currency balances are not available.</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
<ul class="simple"> <ul class="simple">
<li><a class="reference internal" href="#changelog" id="id3">Changelog</a><ul>
<li><a class="reference internal" href="#id1" id="id4">11.0.2.4.1 (2019-01-08)</a></li>
<li><a class="reference internal" href="#id2" id="id5">11.0.2.3.1 (2018-11-29)</a></li>
<li><a class="reference internal" href="#changelog" id="id4">Changelog</a><ul>
<li><a class="reference internal" href="#id1" id="id5">11.0.2.5.0 (2019-04-26)</a></li>
<li><a class="reference internal" href="#id2" id="id6">11.0.2.4.1 (2019-01-08)</a></li>
<li><a class="reference internal" href="#id3" id="id7">11.0.2.3.1 (2018-11-29)</a></li>
</ul> </ul>
</li> </li>
<li><a class="reference internal" href="#bug-tracker" id="id6">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id7">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id8">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id9">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id10">Maintainers</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id8">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id9">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id10">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id11">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id12">Maintainers</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
</div> </div>
<div class="section" id="changelog"> <div class="section" id="changelog">
<h1><a class="toc-backref" href="#id3">Changelog</a></h1>
<h1><a class="toc-backref" href="#id4">Changelog</a></h1>
<div class="section" id="id1"> <div class="section" id="id1">
<h2><a class="toc-backref" href="#id4">11.0.2.4.1 (2019-01-08)</a></h2>
<h2><a class="toc-backref" href="#id5">11.0.2.5.0 (2019-04-26)</a></h2>
<ul class="simple">
<li>In the Trial Balance you have an option to hide parent hierarchy levels</li>
</ul>
</div>
<div class="section" id="id2">
<h2><a class="toc-backref" href="#id6">11.0.2.4.1 (2019-01-08)</a></h2>
<ul class="simple"> <ul class="simple">
<li>Handle better multicompany behaviour</li> <li>Handle better multicompany behaviour</li>
<li>Improve how title appears in the reports</li> <li>Improve how title appears in the reports</li>
<li>Improve performance in General Ledger</li> <li>Improve performance in General Ledger</li>
</ul> </ul>
</div> </div>
<div class="section" id="id2">
<h2><a class="toc-backref" href="#id5">11.0.2.3.1 (2018-11-29)</a></h2>
<div class="section" id="id3">
<h2><a class="toc-backref" href="#id7">11.0.2.3.1 (2018-11-29)</a></h2>
<ul class="simple"> <ul class="simple">
<li>In the Trial Balance you can apply a filter by hierarchy levels</li> <li>In the Trial Balance you can apply a filter by hierarchy levels</li>
<li>In the General Ledger you can apply a filter by Analytic Tag</li> <li>In the General Ledger you can apply a filter by Analytic Tag</li>
@ -420,7 +427,7 @@ currency balances are not available.</p>
</div> </div>
</div> </div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id6">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#id8">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. 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 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
<p>Do not contact contributors directly about support or help with technical issues.</p> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
<h1><a class="toc-backref" href="#id7">Credits</a></h1>
<h1><a class="toc-backref" href="#id9">Credits</a></h1>
<div class="section" id="authors"> <div class="section" id="authors">
<h2><a class="toc-backref" href="#id8">Authors</a></h2>
<h2><a class="toc-backref" href="#id10">Authors</a></h2>
<ul class="simple"> <ul class="simple">
<li>Camptocamp SA</li> <li>Camptocamp SA</li>
<li>initOS GmbH</li> <li>initOS GmbH</li>
@ -439,7 +446,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
</ul> </ul>
</div> </div>
<div class="section" id="contributors"> <div class="section" id="contributors">
<h2><a class="toc-backref" href="#id9">Contributors</a></h2>
<h2><a class="toc-backref" href="#id11">Contributors</a></h2>
<ul class="simple"> <ul class="simple">
<li>Jordi Ballester &lt;<a class="reference external" href="mailto:jordi.ballester&#64;eficient.com">jordi.ballester&#64;eficient.com</a>&gt;</li> <li>Jordi Ballester &lt;<a class="reference external" href="mailto:jordi.ballester&#64;eficient.com">jordi.ballester&#64;eficient.com</a>&gt;</li>
<li>Yannick Vaucher &lt;<a class="reference external" href="mailto:yannick.vaucher&#64;camptocamp.com">yannick.vaucher&#64;camptocamp.com</a>&gt;</li> <li>Yannick Vaucher &lt;<a class="reference external" href="mailto:yannick.vaucher&#64;camptocamp.com">yannick.vaucher&#64;camptocamp.com</a>&gt;</li>
@ -463,7 +470,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
April 2016.</p> April 2016.</p>
</div> </div>
<div class="section" id="maintainers"> <div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id10">Maintainers</a></h2>
<h2><a class="toc-backref" href="#id12">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p> <p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose <p>OCA, or the Odoo Community Association, is a nonprofit organization whose

3
account_financial_report/wizard/trial_balance_wizard.py

@ -50,6 +50,8 @@ class TrialBalanceReportWizard(models.TransientModel):
limit_hierarchy_level = fields.Boolean('Limit hierarchy levels') limit_hierarchy_level = fields.Boolean('Limit hierarchy levels')
show_hierarchy_level = fields.Integer('Hierarchy Levels to display', show_hierarchy_level = fields.Integer('Hierarchy Levels to display',
default=1) default=1)
hide_parent_hierarchy_level = fields.Boolean(
'Do not display parent levels', default=False)
account_ids = fields.Many2many( account_ids = fields.Many2many(
comodel_name='account.account', comodel_name='account.account',
string='Filter accounts', string='Filter accounts',
@ -230,6 +232,7 @@ class TrialBalanceReportWizard(models.TransientModel):
'hierarchy_on': self.hierarchy_on, 'hierarchy_on': self.hierarchy_on,
'limit_hierarchy_level': self.limit_hierarchy_level, 'limit_hierarchy_level': self.limit_hierarchy_level,
'show_hierarchy_level': self.show_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, 'show_partner_details': self.show_partner_details,
} }

1
account_financial_report/wizard/trial_balance_wizard_view.xml

@ -25,6 +25,7 @@
<field name="hierarchy_on" widget="radio" attrs="{'invisible':[('show_partner_details','=',True)]}"/> <field name="hierarchy_on" widget="radio" attrs="{'invisible':[('show_partner_details','=',True)]}"/>
<field name="limit_hierarchy_level" attrs="{'invisible':['|', ('hierarchy_on','=','none'),('show_partner_details','=',True)]}"/> <field name="limit_hierarchy_level" attrs="{'invisible':['|', ('hierarchy_on','=','none'),('show_partner_details','=',True)]}"/>
<field name="show_hierarchy_level" attrs="{'invisible':[('limit_hierarchy_level','=', False)]}"/> <field name="show_hierarchy_level" attrs="{'invisible':[('limit_hierarchy_level','=', False)]}"/>
<field name="hide_parent_hierarchy_level" attrs="{'invisible':[('limit_hierarchy_level','=', False)]}"/>
<field name="foreign_currency"/> <field name="foreign_currency"/>
</group> </group>
</group> </group>

Loading…
Cancel
Save