bfa55e80ffaf931808bd64a2e3d2789049abdbae
By aggregating before the case statement there is no need to group by amount_currency. In earlier versions of Odoo this bug only presented in multicurrency transactions as company currency transactions would have an amount_currency of 0.0 and group by 0.0 just fine. In later versions of Odoo amount_currency is always set and this causes otherwise identical move lines that should be summed to display seperately. However, amount_currency was required in groupby because it was part of a non aggregated case statement with the sum inside. By reversing the nesting we remove the need to group by amount_currency. This is safe because we already group by currency_id and aggregates are not evaluated until after group by completes.
account-financial-reporting
account-financial-reporting
Available addons
| addon | version | maintainers | summary |
|---|---|---|---|
| account_financial_report | 18.0.1.2.0 | OCA Financial Reports | |
| account_tax_balance | 18.0.1.0.0 | Compute tax balances based on date range |
Licenses
This repository is licensed under AGPL-3.0.
However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA)
policy. Consult each module's __manifest__.py file, which contains a license key
that explains its license.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Description
Languages
HTML
40.2%
Python
39%
JavaScript
18.6%
CSS
1.9%
SCSS
0.3%
