diff --git a/account_financial_report_qweb/report/general_ledger.py b/account_financial_report_qweb/report/general_ledger.py index 82db22bf..07bee23e 100644 --- a/account_financial_report_qweb/report/general_ledger.py +++ b/account_financial_report_qweb/report/general_ledger.py @@ -558,10 +558,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 += (