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