Merge PR #1387 into 18.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2025-09-15 13:33:49 +00:00
4 changed files with 68 additions and 59 deletions

View File

@@ -35,12 +35,12 @@ Account Financial Reports
This module adds a set of financial reports. They are accessible under This module adds a set of financial reports. They are accessible under
Invoicing / Reporting / OCA accounting reports. Invoicing / Reporting / OCA accounting reports.
- General ledger - General ledger
- Trial Balance - Trial Balance
- Open Items - Open Items
- Aged Partner Balance - Aged Partner Balance
- VAT Report - VAT Report
- Journal Ledger - Journal Ledger
Currently General ledger, Trial Balance and Open Items are fully Currently General ledger, Trial Balance and Open Items are fully
compatible with a foreign currency set up in account in order to display compatible with a foreign currency set up in account in order to display
@@ -94,12 +94,12 @@ per company in:
Known issues / Roadmap Known issues / Roadmap
====================== ======================
- 'VAT Report' is valid only for cases where it's met that for each Tax - 'VAT Report' is valid only for cases where it's met that for each Tax
defined: all the "Account tags" of all the 'Repartition for Invoices' defined: all the "Account tags" of all the 'Repartition for Invoices'
or 'Repartition for Credit Notes' are different. or 'Repartition for Credit Notes' are different.
- It would be nice to have in reports a column indicating the state of - It would be nice to have in reports a column indicating the state of
the entries when the option "All Entries" is selected in "Target the entries when the option "All Entries" is selected in "Target
Moves" field in a wizard Moves" field in a wizard
Changelog Changelog
========= =========
@@ -107,22 +107,22 @@ Changelog
11.0.2.5.0 (2019-04-26) 11.0.2.5.0 (2019-04-26)
----------------------- -----------------------
- In the Trial Balance you have an option to hide parent hierarchy - In the Trial Balance you have an option to hide parent hierarchy
levels levels
11.0.2.4.1 (2019-01-08) 11.0.2.4.1 (2019-01-08)
----------------------- -----------------------
- Handle better multicompany behaviour - Handle better multicompany behaviour
- Improve how title appears in the reports - Improve how title appears in the reports
- Improve performance in General Ledger - Improve performance in General Ledger
11.0.2.3.1 (2018-11-29) 11.0.2.3.1 (2018-11-29)
----------------------- -----------------------
- In the Trial Balance you can apply a filter by hierarchy levels - In the Trial Balance you can apply a filter by hierarchy levels
- In the General Ledger you can apply a filter by Analytic Tag - In the General Ledger you can apply a filter by Analytic Tag
- In the Journal Ledger the field 'Journal' is now optional - In the Journal Ledger the field 'Journal' is now optional
Bug Tracker Bug Tracker
=========== ===========
@@ -148,43 +148,46 @@ Authors
Contributors Contributors
------------ ------------
- Jordi Ballester <jordi.ballester@forgeflow.com> - Jordi Ballester <jordi.ballester@forgeflow.com>
- Yannick Vaucher <yannick.vaucher@camptocamp.com> - Yannick Vaucher <yannick.vaucher@camptocamp.com>
- Simone Orsi <simone.orsi@abstract.com> - Simone Orsi <simone.orsi@abstract.com>
- Leonardo Pistone <leonardo.pistone@camptocamp.com> - Leonardo Pistone <leonardo.pistone@camptocamp.com>
- Damien Crier <damien.crier@camptocamp.com> - Damien Crier <damien.crier@camptocamp.com>
- Andrea Stirpe <a.stirpe@onestein.nl> - Andrea Stirpe <a.stirpe@onestein.nl>
- Thomas Rehn <thomas.rehn@initos.com> - Thomas Rehn <thomas.rehn@initos.com>
- Andrea Gallina <4everamd@gmail.com> - Andrea Gallina <4everamd@gmail.com>
- Robert Rottermann <robert@redcor.ch> - Robert Rottermann <robert@redcor.ch>
- Ciro Urselli <c.urselli@apuliasoftware.it> - Ciro Urselli <c.urselli@apuliasoftware.it>
- Francesco Apruzzese <opencode@e-ware.org> - Francesco Apruzzese <opencode@e-ware.org>
- Lorenzo Battistini <https://github.com/eLBati> - Lorenzo Battistini <https://github.com/eLBati>
- Julien Coux <julien.coux@camptocamp.com> - Julien Coux <julien.coux@camptocamp.com>
- Akim Juillerat <akim.juillerat@camptocamp.com> - Akim Juillerat <akim.juillerat@camptocamp.com>
- Alexis de Lattre <alexis@via.ecp.fr> - Alexis de Lattre <alexis@via.ecp.fr>
- Mihai Fekete <feketemihai@gmail.com> - Mihai Fekete <feketemihai@gmail.com>
- Miquel Ra??ch <miquel.raich@forgeflow.com> - Miquel Ra??ch <miquel.raich@forgeflow.com>
- Joan Sisquella <joan.sisquella@forgeflow.com> - Joan Sisquella <joan.sisquella@forgeflow.com>
- `Tecnativa <https://www.tecnativa.com>`__: - `Tecnativa <https://www.tecnativa.com>`__:
- Pedro M. Baeza - Pedro M. Baeza
- Sergio Teruel - Sergio Teruel
- Ernesto Tejeda - Ernesto Tejeda
- João Marques - João Marques
- Alexandre D. D??az - Alexandre D. D??az
- V??ctor Mart??nez - V??ctor Mart??nez
- Carolina Fernandez - Carolina Fernandez
- `Sygel <https://www.sygel.es>`__: - `Sygel <https://www.sygel.es>`__:
- Harald Panten - Harald Panten
- Valentin Vinagre - Valentin Vinagre
- Lois Rilo <lois.rilo@forgeflow.com> - Lois Rilo <lois.rilo@forgeflow.com>
- Saran Lim. <saranl@ecosoft.co.th> - Saran Lim. <saranl@ecosoft.co.th>
- Omar Casti??eira <omar@comunitea.com> - Omar Casti??eira <omar@comunitea.com>
- Chau Le <chaulb@trobz.com> - Chau Le <chaulb@trobz.com>
- `Stesi Consulting <https://www.stesi.consulting>`__:
- Michele Di Croce <dicroce.m@stesi.consulting>
Much of the work in this module was done at a sprint in Sorrento, Italy Much of the work in this module was done at a sprint in Sorrento, Italy
in April 2016. in April 2016.

View File

@@ -31,6 +31,8 @@
- Saran Lim. \<<saranl@ecosoft.co.th>\> - Saran Lim. \<<saranl@ecosoft.co.th>\>
- Omar Casti??eira \<<omar@comunitea.com>\> - Omar Casti??eira \<<omar@comunitea.com>\>
- Chau Le \<<chaulb@trobz.com>\> - Chau Le \<<chaulb@trobz.com>\>
- [Stesi Consulting](https://www.stesi.consulting):
- Michele Di Croce \<<dicroce.m@stesi.consulting>\>
Much of the work in this module was done at a sprint in Sorrento, Italy Much of the work in this module was done at a sprint in Sorrento, Italy
in April 2016. in April 2016.

View File

@@ -194,7 +194,7 @@ class TrialBalanceReport(models.AbstractModel):
initial_balances = self.env["account.move.line"].read_group( initial_balances = self.env["account.move.line"].read_group(
domain=domain, domain=domain,
fields=["account_id", "balance", "amount_currency:sum"], fields=["account_id", "balance", "amount_currency:sum"],
groupby=["account_id"], groupby=["account_id", "currency_id"],
) )
pl_initial_balance = 0.0 pl_initial_balance = 0.0
pl_initial_currency_balance = 0.0 pl_initial_currency_balance = 0.0
@@ -432,7 +432,7 @@ class TrialBalanceReport(models.AbstractModel):
tb_initial_acc.append( tb_initial_acc.append(
{"account_id": account.id, "balance": 0.0, "amount_currency": 0.0} {"account_id": account.id, "balance": 0.0, "amount_currency": 0.0}
) )
groupby_fields = ["account_id"] groupby_fields = ["account_id", "currency_id"]
if grouped_by: if grouped_by:
groupby_fields.append("analytic_account_ids") groupby_fields.append("analytic_account_ids")
initial_domain_bs = self._get_initial_balances_bs_ml_domain( initial_domain_bs = self._get_initial_balances_bs_ml_domain(
@@ -515,13 +515,13 @@ class TrialBalanceReport(models.AbstractModel):
tb_initial_prt_bs = self.env["account.move.line"].read_group( tb_initial_prt_bs = self.env["account.move.line"].read_group(
domain=initial_domain_bs, domain=initial_domain_bs,
fields=["account_id", "partner_id", "balance", "amount_currency:sum"], fields=["account_id", "partner_id", "balance", "amount_currency:sum"],
groupby=["account_id", "partner_id"], groupby=["account_id", "partner_id", "currency_id"],
lazy=False, lazy=False,
) )
tb_initial_prt_pl = self.env["account.move.line"].read_group( tb_initial_prt_pl = self.env["account.move.line"].read_group(
domain=initial_domain_pl, domain=initial_domain_pl,
fields=["account_id", "partner_id", "balance", "amount_currency:sum"], fields=["account_id", "partner_id", "balance", "amount_currency:sum"],
groupby=["account_id", "partner_id"], groupby=["account_id", "partner_id", "currency_id"],
) )
tb_initial_prt = tb_initial_prt_bs + tb_initial_prt_pl tb_initial_prt = tb_initial_prt_bs + tb_initial_prt_pl
if hide_account_at_0: if hide_account_at_0:
@@ -536,7 +536,7 @@ class TrialBalanceReport(models.AbstractModel):
"balance", "balance",
"amount_currency:sum", "amount_currency:sum",
], ],
groupby=["account_id", "partner_id"], groupby=["account_id", "currency_id", "partner_id"],
lazy=False, lazy=False,
) )
total_amount = {} total_amount = {}

View File

@@ -532,6 +532,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<li>Saran Lim. &lt;<a class="reference external" href="mailto:saranl&#64;ecosoft.co.th">saranl&#64;ecosoft.co.th</a>&gt;</li> <li>Saran Lim. &lt;<a class="reference external" href="mailto:saranl&#64;ecosoft.co.th">saranl&#64;ecosoft.co.th</a>&gt;</li>
<li>Omar Casti??eira &lt;<a class="reference external" href="mailto:omar&#64;comunitea.com">omar&#64;comunitea.com</a>&gt;</li> <li>Omar Casti??eira &lt;<a class="reference external" href="mailto:omar&#64;comunitea.com">omar&#64;comunitea.com</a>&gt;</li>
<li>Chau Le &lt;<a class="reference external" href="mailto:chaulb&#64;trobz.com">chaulb&#64;trobz.com</a>&gt;</li> <li>Chau Le &lt;<a class="reference external" href="mailto:chaulb&#64;trobz.com">chaulb&#64;trobz.com</a>&gt;</li>
<li><a class="reference external" href="https://www.stesi.consulting">Stesi Consulting</a>:<ul>
<li>Michele Di Croce &lt;<a class="reference external" href="mailto:dicroce.m&#64;stesi.consulting">dicroce.m&#64;stesi.consulting</a>&gt;</li>
</ul>
</li>
</ul> </ul>
<p>Much of the work in this module was done at a sprint in Sorrento, Italy <p>Much of the work in this module was done at a sprint in Sorrento, Italy
in April 2016.</p> in April 2016.</p>