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

[16.0][MIG] l10n_es_dua_sii: Migration to version 16.0 #3093

Merged
merged 23 commits into from
Jun 15, 2023

Conversation

Yadier-Tecnativa
Copy link
Contributor

@Tecnativa TT43232

Jortolsa-S73 and others added 23 commits June 9, 2023 23:49
Currently translated at 100.0% (2 of 2 strings)

Translation: l10n-spain-10.0/l10n-spain-10.0-l10n_es_dua_sii
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-10-0/l10n-spain-10-0-l10n_es_dua_sii/gl/
* README update. Not related but rechecking the roadmap was not accurated
* Tests adapted
* Tax description renamed
…not been defined

The "Fiscal position" field of the invoice is not a mandatory field so it might be not defined, in this case, its default value is "Régimen nacional".
The original module assumes that the fiscal position of the DUA always exists and this may not be so, mainly in multicompany environments where not all companies use DUA and they don't need to have this fiscal position created.
Se quita ImporteTotal como informacion que se manda al SII, para evitar
problemas de nuevas validaciones incorporadas en el SII para 2021
- Refactor and improve tests
- 10n_es_aeat_sii_oca: adapt helper method

  - Allow for defining the base module from which to import the expected
    output json to allow usage downstream.
  - Return created invoice

TT26766

Co-Authored-By: Pedro M. Baeza <[email protected]>
Currently translated at 100.0% (2 of 2 strings)

Translation: l10n-spain-14.0/l10n-spain-14.0-l10n_es_dua_sii
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-14-0/l10n-spain-14-0-l10n_es_dua_sii/ca/
Moved so that they are not listed at the beginning of the test folder,
and thus it's easier to locate test files.
Mantener el tipo LC en el caso de que una factura sea DUA y a la vez se le marque la casilla de Liquidación complementaria.
Cambios traídos de la v14.0 OCA#2358
@Yadier-Tecnativa
Copy link
Contributor Author

ping @pedrobaeza

@pedrobaeza
Copy link
Member

/ocabot migration l10n_es_dua_sii

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Jun 13, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Jun 12, 2023
54 tasks
@rafaelbn
Copy link
Member

¿Podríamos mejorar el README o los comentarios en el código de la función que decide lo que se presenta y lo que no?

Estuvimos analizando @HaraldPanten y @cubells (ellos más bien) el código y les costó entender qué hacía la función

https://github.com/OCA/l10n-spain/pull/3093/files#diff-b2f5b4cb87a47c5106f0b706fa994c94db35ae23888c9fb68375b8dc612349bcR36-R58

En mi opinión lo que hace es:

Mira la posición fiscal y si es Importación con DUA, luego mira si tienes impuestos mapeados al SII (como del de importación 21%) y si los tienes entonces la manda al SII pero sólo esas líneas con estos impuestos.

Copy link
Member

@rafaelbn rafaelbn left a comment

Choose a reason for hiding this comment

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

A ver, lo veo bien.

He encontrado al probar esto no related (creo): #3096

Y luego, pues que claro no se puede probar el módulo porque al mandar al SII

  File "/opt/odoo-venv/lib/python3.10/site-packages/requests/adapters.py", line 458, in send
    self.cert_verify(conn, request.url, verify, cert)
  File "/opt/odoo-venv/lib/python3.10/site-packages/requests/adapters.py", line 285, in cert_verify
    raise OSError(
OSError: Could not find the TLS certificate file, invalid path: /opt/certificates/publicCert.crt

Pero lo veo bien 👍🏼

@HaraldPanten
Copy link
Contributor

Hola Rafa,

Sí, el error es normal al no detectar el certificado. Para hacer la comprobación al 100% ya es mejor montarlo en local con un certificado y probar envíos de test. Es la mejor prueba que se podría hacer "sin causar daños", en mi opinión.

En cuanto al README, ¿tenías algo pensado? Es decir... se puede mejorar con 4 explicaciones extra; pienso lo mismo.

Si quieres, cuando esté fusionado, enviáis un [IMP] del README (en V14) y lo pasamos a V15 y V16.

¿Cómo lo ves?

Saludos.

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit bec3f77 into OCA:16.0 Jun 15, 2023
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 16.0-mig-l10n_es_dua_sii branch June 15, 2023 20:49
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.