From dd790c4fc9a027daf21d7ab42c8549bea34d2d04 Mon Sep 17 00:00:00 2001 From: Omar Shatnawi <49199333+omarshatnawi39@users.noreply.github.com> Date: Wed, 3 Apr 2019 12:09:26 +0300 Subject: [PATCH] Update general_ledger.py fix for issue: https://github.com/OCA/account-financial-reporting/issues/532 --- account_financial_report_qweb/report/general_ledger.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/account_financial_report_qweb/report/general_ledger.py b/account_financial_report_qweb/report/general_ledger.py index 83dee086..78e566c1 100644 --- a/account_financial_report_qweb/report/general_ledger.py +++ b/account_financial_report_qweb/report/general_ledger.py @@ -553,10 +553,8 @@ WHERE ) """ if self.hide_account_at_0: - query_inject_account += """ -AND - f.balance IS NOT NULL AND f.balance != 0 - """ + query_inject_account += """ AND (f.balance IS NOT NULL AND f.balance != 0) OR + (i.balance IS NOT NULL AND i.balance != 0) """ query_inject_account_params = () if self.filter_cost_center_ids: query_inject_account_params += (