odoo/odoo#264902

Created by fw-bot
Merged at acd00e6027ff03bd3c2651aa2eb7bfde80302d19

Statuses:

label
odoo-dev:saas-19.2-17.0-opw-6172791-l10n_it_tax_report_VF25_formula-esand-527279-fw
head
3d7b6edf406957fda2dce9647df53e04767b86a2
merged
1 month ago by Ester Andreetto (esand)
odoo/odoo
17.0 #264379
18.0 #264764
saas-18.2 #264784
saas-18.3 #264809
saas-18.4 #264829
19.0 #264847
saas-19.1 #264890
saas-19.2 #264902
saas-19.3 #264938
master #264980

[FIX] l10n_it: correct VF25 formula in italian annual tax report

Issue before this commit:

In the Italian Annual VAT Report, the balance (base amount) for line VF25 displays incorrect values. Instead of computing the sum of the taxable bases for the passive operations, the report erroneously mixes tax amounts into the balance column.

Steps to reproduce the issue:

  1. Download Accounting and l10n_it
  2. Go to Tax Report and visualize the Annual Tax Report (IT)
  3. Go to VF VAT Report
  4. See the VF25 is mixing taxes and balances

Cause of the issue:

The root cause lies in the aggregation_formula definition for the tax_annual_report_line_VF25 record. The formula was incorrectly configured to aggregate the .tax expressions for lines VF1 to VF13 (VF1.tax + VF2.tax + ...) instead of their respective .balance expressions, while correctly using .balance for the remaining lines (VF17 to VF24).
https://github.com/odoo/odoo/blob/878c08cf522a3278b4e6ff5f3d18444989e9998d/addons/l10n_it/data/tax_report/annual_report_sections/vf.xml#L286-L299

It's just a typo in this commit: #164064/changes/f292ba119d6376dbfb3c1fac4960c9c56a74d938

Reason to introduce the fix:

From documentation https://www.agenziaentrate.gov.it/portale/documents/20143/9602686/IVA_ANNUALE_2026_istr.pdf/2a42fb92-1b76-229a-d0f5-06069d79b514?t=1768504755711 :

> Rigo VF25, colonna 1, va indicato il totale degli imponibili determinato sommando gli importi riportati ai righi da VF1 a VF23, colonna 1, diminuito dell’importo di cui al rigo VF24. In colonna 2 va indicato il totale delle imposte determinato sommando gli importi delle colonne 2 dei righi da VF1 a VF13.

opw-6172791


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #264379