Browse Source

insert tuple in query without trailing comma

pull/677/head
SimoRubi 4 years ago
parent
commit
620c94dd6c
  1. 4
      account_financial_report_qweb/report/general_ledger.py

4
account_financial_report_qweb/report/general_ledger.py

@ -331,8 +331,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 += """

Loading…
Cancel
Save