odoo/odoo#248539

Created by fw-bot
Merged at b1a91bac849871ec37510fa97747285fe373bd22

Statuses:

label
odoo-dev:18.0-17.0-opw-5867849-l10n_es_report_mod_390-zavan-496975-fw
head
bb2dedf75f67d8cb8d3bcfd85338f9c90309482d
merged
2 months ago by Zachary Vanvlasselaer (zavan)
odoo/odoo odoo/enterprise
17.0 #247590 #106723
18.0 #248539
saas-18.2 #248682
saas-18.3 #249022
saas-18.4 #249249
19.0 #249286

[FIX] l10n_es: fix report mod 390

How to reproduce:
- Install the l10n_es module
- Switch to a spanish company
- Confirm a Vendor Bill with a Product with the tax 0% EU G
- Go to the Tax Report and select mod390

The problem:
In the section "Adquisiciones intracomunitarias de bienes", the total amount is shown two time, once for grid 716 and once for grid 26

Why:
In the declaration of the tax template for 0% EU G, there is two tags for the mod 390, the one for grid 26 being wrong

Before:
<img width="818" height="447" alt="image" src="https://github.com/user-attachments/assets/0565802d-5d98-4e0f-9e08-50776f0a5aec" />

After:
<img width="834" height="443" alt="image" src="https://github.com/user-attachments/assets/89696c83-7022-439d-adaa-d456c2dbadf8" />

opw-5867849


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

Forward-Port-Of: #247590