Skip to content

[19.0][FIX] l10n_es_aeat: Switch the equivalent tax mechanism to other level - #5048

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
moduon:19.0-fix-l10n_es_aeat-equivalent_tax
Jun 16, 2026
Merged

[19.0][FIX] l10n_es_aeat: Switch the equivalent tax mechanism to other level#5048
OCA-git-bot merged 1 commit into
OCA:19.0from
moduon:19.0-fix-l10n_es_aeat-equivalent_tax

Conversation

@EmilioPascual

@EmilioPascual EmilioPascual commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Forward-port of #5043 and #5037, which redoes #5031, which was a refinement of #5018.

Changes to non-migrated modules have been removed.

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.

@moduon

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @pedrobaeza,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:19.0 mod:l10n_es_aeat_sii_oca Module l10n_es_aeat_sii_oca mod:l10n_es_aeat Module l10n_es_aeat mod:l10n_es_aeat_mod349 Module l10n_es_aeat_mod349 labels Jun 16, 2026
@pedrobaeza

Copy link
Copy Markdown
Member

Iba a hacer este fw-port cuando revisara y fusionar el VAT book, porque el PR abierto no contiene el parche.

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.
@EmilioPascual

Copy link
Copy Markdown
Contributor Author

Ya, es que estaba migrando de nuevo el vat book a 19 ya que #4884 no parece avanzar y me he topado con que necesitaba este commit, asi que ya he hecho el fwp. Espero que no te importe

@EmilioPascual
EmilioPascual force-pushed the 19.0-fix-l10n_es_aeat-equivalent_tax branch from 4f566b6 to 92278c4 Compare June 16, 2026 08:41
@pedrobaeza pedrobaeza added this to the 19.0 milestone Jun 16, 2026

@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.

De acuerdo entonces.

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-5048-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit ae39f25 into OCA:19.0 Jun 16, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 7b87d16. 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

Labels

merged 🎉 mod:l10n_es_aeat_mod349 Module l10n_es_aeat_mod349 mod:l10n_es_aeat_sii_oca Module l10n_es_aeat_sii_oca mod:l10n_es_aeat Module l10n_es_aeat series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants