FIX account_financial_report_qweb trial balance: consider journals set in wizard

pull/678/head
eLBati 2020-04-23 20:40:39 +02:00
parent 0bf025e6e7
commit 812d11150e
1 changed files with 5 additions and 0 deletions

View File

@ -331,6 +331,11 @@ class GeneralLedgerReportCompute(models.TransientModel):
sub_subquery_sum_amounts += """
AND at.include_initial_balance = TRUE
"""
if self.filter_journal_ids:
sub_subquery_sum_amounts += """
AND
ml.journal_id IN %s
""" % (tuple(self.filter_journal_ids.ids,),)
if self.only_posted_moves:
sub_subquery_sum_amounts += """