From 099a23c191426c28afe444b0e59eed9b14923d49 Mon Sep 17 00:00:00 2001 From: SimoRubi Date: Tue, 24 Nov 2020 15:39:17 +0100 Subject: [PATCH] [FIX] account_financial_report: Correctly inject selected journals in accounts query --- account_financial_report/__manifest__.py | 2 +- account_financial_report/report/general_ledger.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/account_financial_report/__manifest__.py b/account_financial_report/__manifest__.py index aaaef0b6..43555ef8 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': '12.0.1.4.1', + 'version': '12.0.1.4.2', 'category': 'Reporting', 'summary': 'OCA Financial Reports', 'author': 'Camptocamp SA,' diff --git a/account_financial_report/report/general_ledger.py b/account_financial_report/report/general_ledger.py index 5beb736d..35111a62 100644 --- a/account_financial_report/report/general_ledger.py +++ b/account_financial_report/report/general_ledger.py @@ -338,8 +338,8 @@ class GeneralLedgerReportCompute(models.TransientModel): if self.filter_journal_ids: sub_subquery_sum_amounts += """ AND - ml.journal_id IN %s - """ % (tuple(self.filter_journal_ids.ids,),) + ml.journal_id IN (%s) + """ % ', '.join(map(str, self.filter_journal_ids.ids)) if self.only_posted_moves: sub_subquery_sum_amounts += """