Browse Source

[FIX] account_financial_report: Correctly inject selected journals in accounts query

pull/743/head
SimoRubi 4 years ago
parent
commit
099a23c191
  1. 2
      account_financial_report/__manifest__.py
  2. 4
      account_financial_report/report/general_ledger.py

2
account_financial_report/__manifest__.py

@ -4,7 +4,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
'name': 'Account Financial Reports', 'name': 'Account Financial Reports',
'version': '12.0.1.4.1',
'version': '12.0.1.4.2',
'category': 'Reporting', 'category': 'Reporting',
'summary': 'OCA Financial Reports', 'summary': 'OCA Financial Reports',
'author': 'Camptocamp SA,' 'author': 'Camptocamp SA,'

4
account_financial_report/report/general_ledger.py

@ -338,8 +338,8 @@ class GeneralLedgerReportCompute(models.TransientModel):
if self.filter_journal_ids: if self.filter_journal_ids:
sub_subquery_sum_amounts += """ sub_subquery_sum_amounts += """
AND 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: if self.only_posted_moves:
sub_subquery_sum_amounts += """ sub_subquery_sum_amounts += """

Loading…
Cancel
Save