Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] l10n_es_aeat_mod123: Migration to version 17.0 #3519

Merged
merged 46 commits into from
May 3, 2024

Conversation

manuelregidor
Copy link
Contributor

Standard migration

T-5947

@HaraldPanten
Copy link
Contributor

/ocabot migration l10n_es_aeat_mod123

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Apr 11, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Apr 11, 2024
50 tasks
@pedrobaeza
Copy link
Member

Esto está directamente afectado por #3520

@HaraldPanten
Copy link
Contributor

Esto está directamente afectado por #3520

Gracias Pedro. vamos a empezar arreglando la rama, ya que fallan los tests del 303.

@pedrobaeza
Copy link
Member

¿Se han estropeado en la principal?

@manuelregidor
Copy link
Contributor Author

@pedrobaeza Parece que sí. Estoy testando el módulo del 303 en local individualmente y falla.

@HaraldPanten
Copy link
Contributor

¿Se han estropeado en la principal?

Está relacionado con esto, por lo que hemos detectado --> #3522

@HaraldPanten
Copy link
Contributor

@manuelregidor A tener en cuenta cuando se fusione, el nuevo formato para 2024 --> #3528

@manuelregidor manuelregidor force-pushed the 17.0-mig-l10n_es_aeat_mod123 branch 2 times, most recently from 4c00a21 to 04f4bf4 Compare April 17, 2024 12:44
@HaraldPanten
Copy link
Contributor

HaraldPanten commented Apr 25, 2024

@manuelregidor Ya puedes seguir con la migración a V17, puesto que el PR #3528 ha sido fusionado.

Tener en cuenta este comentario --> #3528 (review)

Pedro se refiere a este script --> #3387 (comment)

Corregido, Pedro se refiere a este script --> https://gist.github.com/pedrobaeza/ea7eb8eabfd856511a0b565295099c1a

@pedrobaeza
Copy link
Member

Bueno, para el formato BOE, sería éste otro script: https://gist.github.com/pedrobaeza/ea7eb8eabfd856511a0b565295099c1a

@HaraldPanten
Copy link
Contributor

Bueno, para el formato BOE, sería éste otro script: https://gist.github.com/pedrobaeza/ea7eb8eabfd856511a0b565295099c1a

Gracias Pedro

@manuelregidor manuelregidor force-pushed the 17.0-mig-l10n_es_aeat_mod123 branch from 04f4bf4 to e7b16c2 Compare April 26, 2024 07:14
@HaraldPanten HaraldPanten self-requested a review April 26, 2024 09:49
pedrobaeza and others added 14 commits April 30, 2024 07:35
================================
Presentación del Modelo AEAT 123
================================

Modelo 123 de la AEAT. Retenciones e ingresos a cuenta del Impuesto sobre la
Renta de las Personas Físicas, Impuesto sobre Sociedades y del Impuesto sobre
la Renta de no Residentes (establecimientos permanentes). Determinados
rendimientos del capital mobiliario o determinadas rentas.

Este modelo tiene su utilidad sobre todo en préstamos entre empresas o
particulares, o financiaciones recibidas por ENISA (Empresa Nacional de
Innovación) o CDTI (Centro para el Desarrollo Tecnológico Industrial).

Otra utilidad que se le da es para las retenciones en los repartos de
dividendos.

El modelo se presentará mensualmente para grandes empresas, y mensualmente
para el resto, por parte de aquellas empresas que deban abonar intereses de
esos préstamos.

Instalación
===========

Este módulo depende del módulo _l10n_es_ que está en este mismo repositorio
(pero que debe tener más prioridad que el de Odoo base), con la versión mínima
5.4. Para que el módulo funcione, el plan de cuentas debe estar actualizado.
Utilice _account_chart_update_ para ello.

Uso
===

Para introducir datos válidos para el modelo:

* Realizar una factura de proveedor de los intereses cobrados por la empresa
  o particular prestatario con impuesto "Retenciones 21% (préstamos)".
* O también puede realizar una factura de proveedor del reparto de dividendos
  con el impuesto "Retenciones 19% (dividendos)".
* Validarla.

Para crear una declaración del modelo:

* Ir a Contabilidad > Informe > Informes legales > Declaraciones AEAT >
  Modelo 123.
* Pulsar en el botón "Crear".
* Seleccionar el ejercicio fiscal y el tipo de período. Los periodos incluidos
  se calculan automáticamente.
* Seleccionar el tipo de declaración.
* Rellenar el teléfono, necesario para la exportacion BOE.
* Guardar y pulsar en el botón "Calcular".
* Cuando revise los valores, pulse en el botón "Confirmar".
* Se puede exportar la declaración en formato BOE para presentarla
  telemáticamente en el portal de la AEAT
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.
Currently translated at 100.0% (39 of 39 strings)

Translation: l10n-spain-11.0/l10n-spain-11.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-11-0/l10n-spain-11-0-l10n_es_aeat_mod123/es/
* 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
Change year extraction to the specific field for the year
Currently translated at 100.0% (100 of 100 strings)

Translation: l10n-spain-13.0/l10n-spain-13.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-13-0/l10n-spain-13-0-l10n_es_aeat_mod123/es/
Currently translated at 99.0% (99 of 100 strings)

Translation: l10n-spain-13.0/l10n-spain-13.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-13-0/l10n-spain-13-0-l10n_es_aeat_mod123/ca/
ValentinVinagre and others added 15 commits April 30, 2024 07:35
Currently translated at 100.0% (100 of 100 strings)

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_aeat_mod123/ca/
Currently translated at 100.0% (100 of 100 strings)

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_aeat_mod123/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_aeat_mod123/
Currently translated at 99.0% (99 of 100 strings)

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_aeat_mod123/es/
Currently translated at 100.0% (100 of 100 strings)

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_aeat_mod123/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_aeat_mod123/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_aeat_mod123/
Currently translated at 100.0% (100 of 100 strings)

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_aeat_mod123
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_aeat_mod123/es/
@manuelregidor manuelregidor force-pushed the 17.0-mig-l10n_es_aeat_mod123 branch from a6096f5 to 8e7cfe4 Compare April 30, 2024 05:35
@manuelregidor manuelregidor force-pushed the 17.0-mig-l10n_es_aeat_mod123 branch from 8e7cfe4 to 969f83c Compare May 2, 2024 08:22
@manuelregidor
Copy link
Contributor Author

@HaraldPanten @Jesarregui Ya están incluida en el PR la diferenciación del modelo anterior a 2024 y a partir de 2024. ¿Podríais revisar, por favor? Gracias!

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Gracias por la conversión a CSV y demás trabajo.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-3519-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 12d69c1 into OCA:17.0 May 3, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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