From 44eb4db3cbc6456847533a4945bbd12f560ea2cb Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Wed, 25 Sep 2019 11:42:02 +0200 Subject: [PATCH] [FIX] account_financial_report: Hide ending balance if general ledger is filtered by partner --- account_financial_report/__manifest__.py | 2 +- account_financial_report/report/general_ledger_xlsx.py | 3 ++- account_financial_report/report/templates/general_ledger.xml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/account_financial_report/__manifest__.py b/account_financial_report/__manifest__.py index f6f78f7a..a37b87d6 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.5.2', + 'version': '11.0.2.6.0', 'category': 'Reporting', 'summary': 'OCA Financial Reports', 'author': 'Camptocamp SA,' diff --git a/account_financial_report/report/general_ledger_xlsx.py b/account_financial_report/report/general_ledger_xlsx.py index 1b55d8ce..6f1ffa06 100644 --- a/account_financial_report/report/general_ledger_xlsx.py +++ b/account_financial_report/report/general_ledger_xlsx.py @@ -154,7 +154,8 @@ class GeneralLedgerXslx(models.AbstractModel): self.row_pos += 1 # Display ending balance line for account - self.write_ending_balance(account) + if not report.filter_partner_ids: + self.write_ending_balance(account) # 2 lines break self.row_pos += 2 diff --git a/account_financial_report/report/templates/general_ledger.xml b/account_financial_report/report/templates/general_ledger.xml index ff03ca33..3aa980a5 100644 --- a/account_financial_report/report/templates/general_ledger.xml +++ b/account_financial_report/report/templates/general_ledger.xml @@ -67,7 +67,7 @@ - +