Skip to content

[19.0][MIG] l10n_es_aeat_mod216: Migration to 19.0 - #4912

Merged
OCA-git-bot merged 50 commits into
OCA:19.0from
moduon:19.0-mig-l10n_es_aeat_mod216
Apr 27, 2026
Merged

[19.0][MIG] l10n_es_aeat_mod216: Migration to 19.0#4912
OCA-git-bot merged 50 commits into
OCA:19.0from
moduon:19.0-mig-l10n_es_aeat_mod216

Conversation

@EmilioPascual

Copy link
Copy Markdown
Contributor

MT-14047 @moduon

@EmilioPascual
EmilioPascual force-pushed the 19.0-mig-l10n_es_aeat_mod216 branch 2 times, most recently from 1930247 to 24dc871 Compare March 20, 2026 15:37
@HaraldPanten

Copy link
Copy Markdown
Contributor

/ocabot migration l10n_es_aeat_mod216

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Mar 20, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Mar 20, 2026
40 tasks

@ArantxaSudon ArantxaSudon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Revisión funcional
Comprobado que recoge correctamente el mapeo de impuestos y que calcula los resultados teniendo en cuenta las casillas editables

Image

Gracias @EmilioPascual

@moduon MT-14047

EmilioPascual added a commit to moduon/l10n-spain that referenced this pull request Apr 6, 2026
Add temporary reference to PR OCA#4912 for l10n_es_aeat_mod216 dependency
agaldona and others added 23 commits April 6, 2026 13:33
…lculo por códigos de impuestos generalizado + tratamiento residentes 216 y cálculo, traducciones
…lugar de recordset + gestionar grupos de compañías
…ixes OCA#290

Cuando se tienen campos related, aunque el valor no se cambie,
Odoo lanza una escritura en el objeto relacionado cada vez que se
guarda el objeto principal. En el caso de la moneda asociada a la
compañía, hace que aquellos usuarios que no tengan permiso para
modificar la compañía (la mayoría), falle en la creación del modelo.
El anterior método utilizado, al tener una clase y un many2one genérico,
no permitía poner los datos en múltiples modelos hijos, ya que se repetían
los IDs, y cogía los datos de un modelo en otros.

Con este nuevo sistema, se sigue utilizando una tabla, pero con doble
índice: el modelo y el ID, parecido a un campo reference, pero gestionado
por código propio en el método de cálculo.

El 303 está adaptado a este nuevo sistema, y se incluye un script de
migración que conserve los datos.
* Standard migration procedure
a nivel individualizado, sino agrupadas.
Se corrije el filtro de asientos del mod 111 para que se
tengan en cuenta los apuntes contables asociados a IRPF
para tanto empresas que son residentes como para el caso en que
no se ha informado la empresa en el apunte contable de la nómina.

En caso del modelo 216, sí que parece más justificado tener
que introducir el campo empresa.
This way, we don't initially see all the subconfigs for each model and we can concentrate
on main export configurations. This is got through `active` field default behaviour.
Archived config are still directly searchable through the subconfig selector in the
configuration line.

All models export configs have been adapted to this new approach.
Previous approach was not correct, as the used taxes don't apply to non resident.

We use now l10n_es_irnr module for having proper taxes, map them in the model, and
adapt the rest of the needed things.
* Float > Monetary and remove view definition
* casilla_07 must be monetary (float), not integer
* Include chatter (mail.thread)
* Include activities (mail.activity.mixin)
* Track AEAT report state change
* Include new admin user in AEAT group by default
…n tests

This way, we can reuse it in other modules that don't inherit AEAT report like SII.

We also clean a non needed reading of the tax description field.

Tests were still using description method for populating data, so we switch to new
system and perform needed changes in dependent tests.

s
david-banon-tecnativa and others added 16 commits April 6, 2026 13:33
…agencia

[IMP] l10n_es_aeat*: cambio de menu a declaraciones con submenus por agencia

[IMP] l10n_es_aeat*: cambio de menu a declaraciones con submenus por agencia
Using the openupgradelib decorator, we have env, not cr.
Currently translated at 72.3% (97 of 134 strings)

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_aeat_mod216
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_aeat_mod216/es/
- ASCII encoding is adding a final 'B' that is breaking the AEAT import.
- pre-commit stripped out the space in the previous declaration, so let's use `eval` for restoring the space and not having this problem in the future.

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

Code review.

@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

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 19.0-ocabot-merge-pr-4912-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit eba0b65 into OCA:19.0 Apr 27, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@Shide
Shide deleted the 19.0-mig-l10n_es_aeat_mod216 branch April 27, 2026 07:06
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.