From f5ff2eb49a43a20900edc2ddca4c0a2fca998fd5 Mon Sep 17 00:00:00 2001 From: Tonow-c2c Date: Thu, 27 Jun 2019 08:45:18 +0200 Subject: [PATCH] [11.0][account_financial_report] Fix report name test --- account_financial_report/report/general_ledger.py | 5 ++++- .../report/templates/general_ledger.xml | 4 ++++ account_financial_report/reports.xml | 10 +++++----- account_financial_report/tests/abstract_test.py | 13 ++++++++++--- .../tests/test_general_ledger.py | 3 +++ 5 files changed, 26 insertions(+), 9 deletions(-) diff --git a/account_financial_report/report/general_ledger.py b/account_financial_report/report/general_ledger.py index db6512f3..5af9f600 100644 --- a/account_financial_report/report/general_ledger.py +++ b/account_financial_report/report/general_ledger.py @@ -219,6 +219,9 @@ class GeneralLedgerReportCompute(models.TransientModel): self.ensure_one() if report_type == 'xlsx': report_name = 'a_f_r.report_general_ledger_xlsx' + elif report_type == 'qweb-html': + report_name = 'account_financial_report.' \ + 'report_general_ledger_html_qweb' else: report_name = 'account_financial_report.' \ 'report_general_ledger_qweb' @@ -1224,7 +1227,7 @@ LEFT JOIN account_analytic_account aa ON ml.analytic_account_id = aa.id """ if self.filter_analytic_tag_ids: - query_inject_move_line += """ + query_inject_move_line += """ INNER JOIN move_lines_on_tags ON ml.id = move_lines_on_tags.ml_id """ diff --git a/account_financial_report/report/templates/general_ledger.xml b/account_financial_report/report/templates/general_ledger.xml index ff03ca33..9506a3ca 100644 --- a/account_financial_report/report/templates/general_ledger.xml +++ b/account_financial_report/report/templates/general_ledger.xml @@ -11,6 +11,10 @@ + +