Skip to content

[19.0][MIG] l10n_es_vat_book - #5049

Merged
OCA-git-bot merged 122 commits into
OCA:19.0from
moduon:19.0-mig-l10n_es_vat_book
Jun 23, 2026
Merged

[19.0][MIG] l10n_es_vat_book#5049
OCA-git-bot merged 122 commits into
OCA:19.0from
moduon:19.0-mig-l10n_es_vat_book

Conversation

@EmilioPascual

Copy link
Copy Markdown
Contributor

Supersed: #4884 (No había respuestas en el PR y pre-commit y tests estaban en rojo)

¿@Shide @ArantxaSudon @pedrobaeza @HaraldPanten podéis revisar, por favor? Gracias

MT-12852 @moduon

JordiBForgeFlow and others added 30 commits June 16, 2026 11:04
facturas "normales" como rectificativas.
* Translations
* Terms homogeneization
* README by fragments
* Test reports
When a large amount of move lines are processed (hundreds of thousands)
it can lead to a MemoryError when we try to calculate the VAT book
Steps to reproduce the problem:

- Create an invoice with 0 amount, but any line.
- Put in that line a tax "Recargo equivalencia X%".
- Create a VAT book in the interval of the invoice.
- Compute the book
- We get the error

File "/home/odoo/build/OCA/l10n-spain/l10n_es_vat_book/models/l10n_es_vat_book.py", line 265, in upsert_book_line_tax
lambda l: not l['special_tax_group'], implied_lines))
StopIteration

This is due to a reused dictionary in the loop, so we perform a copy of the original dictionary each time.

Fixes OCA#1221
OCA-git-bot and others added 14 commits June 16, 2026 11:05
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_vat_book
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_vat_book/
…it is a harmless tax and does not need to be reflected.
Currently translated at 98.2% (164 of 167 strings)

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_vat_book
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_vat_book/es/
Currently translated at 99.4% (166 of 167 strings)

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_vat_book
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_vat_book/es/
Currently translated at 100.0% (167 of 167 strings)

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_vat_book
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_vat_book/ca/
SII and other modules don't use the mapping mechanism of
`l10n.es.aeat.map.tax.line`, so we need to put it at other level that is
used for all.

Thus, it has been required to refactor all the involved modules, now
calling a new extra method at company level, that is able to return
several taxes at once, taking into account the equivalent ones.

Some refactor of such involved methods has been done taking the occasion
to improve the code.
@HaraldPanten

Copy link
Copy Markdown
Contributor

Gracias Emilio

/ocabot migration l10n_es_vat_book

@pedrobaeza

Copy link
Copy Markdown
Member

De momento no incluyas 6ab6a6b

@EmilioPascual
EmilioPascual force-pushed the 19.0-mig-l10n_es_vat_book branch from 6ab6a6b to 24c21f5 Compare June 22, 2026 05:30
@EmilioPascual

Copy link
Copy Markdown
Contributor Author

De momento no incluyas 6ab6a6b

Quitado

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 19.0-ocabot-merge-pr-5049-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 1b85126 into OCA:19.0 Jun 23, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at af07502. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.