[FIX] account_financial_report: correctly sum amount_currency in read_group for trial balance

On Odoo18 if you group:sum by amount_currency, if you don't put currency_id in the group field
the amount_currency is removed by read_group function on account addon
This commit is contained in:
micheledic
2025-09-12 14:52:11 +02:00
parent 8535b91884
commit 47a66bb5f2
4 changed files with 68 additions and 59 deletions

View File

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