Browse Source

FIX account_financial_report_qweb trial balance: consider journals set in wizard

pull/744/head
eLBati 5 years ago
committed by Tom Blauwendraat
parent
commit
fbaa45b0bf
  1. 3
      account_financial_report/README.rst
  2. 5
      account_financial_report/report/general_ledger.py
  3. 4
      account_financial_report/static/description/index.html

3
account_financial_report/README.rst

@ -115,6 +115,9 @@ Contributors
* Pedro M. Baeza
* Sergio Teruel
* `Druidoo <https://www.druidoo.io>`__:
* Iván Todorovich
Much of the work in this module was done at a sprint in Sorrento, Italy in
April 2016.

5
account_financial_report/report/general_ledger.py

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

4
account_financial_report/static/description/index.html

@ -470,6 +470,10 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<li>Sergio Teruel</li>
</ul>
</li>
<li><a class="reference external" href="https://www.druidoo.io">Druidoo</a>:<ul>
<li>Iván Todorovich</li>
</ul>
</li>
</ul>
<p>Much of the work in this module was done at a sprint in Sorrento, Italy in
April 2016.</p>

Loading…
Cancel
Save