-
-
Notifications
You must be signed in to change notification settings - Fork 520
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][IMP] l10n_es_aeat_mod349: implement more error texts #3331
[16.0][IMP] l10n_es_aeat_mod349: implement more error texts #3331
Conversation
Hi @pedrobaeza, |
d6b74e1
to
b1b3833
Compare
b1b3833
to
d1264c9
Compare
l10n_es_aeat_mod349/models/mod349.py
Outdated
country_code = record.partner_vat[0:2] | ||
if country_code.isnumeric(): | ||
country_code = record.country_id.code | ||
european_codes = record.partner_id._get_aeat_europe_codes() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esto no haría falta obtenerlo si no hay código de país. Tampoco entiendo el doble código para los códigos de países de Europa. ¿Por qué es necesario?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Listo, lo he cambiado para que lo obtenga cuando sí exista código de país. Realmente no es duplicado, ya que si no tiene código, no va a verificar si existe dentro de los códigos europeos.
201b940
to
b37fc7d
Compare
897cd22
to
d389284
Compare
Buenas @pedrobaeza, @ACheung-FactorLibre te ha realizado los cambios requeridos, es posible mergear? |
@RodrigoBM podéis hacer rebase para ver si el runboat se construye correctamente? Gracias. |
f4acecc
to
8e1000a
Compare
8e1000a
to
2938de8
Compare
Buenas @HaraldPanten, Listo, gracias. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probados los 3 casos en runboat:
- NIF sin código de país.
- País no encontrado en el grupo de países de Europa.
- Importe negativo del período.
Revisión funcional OK.
This PR has the |
@pedrobaeza Si técnicamente te encaja, fusionamos. Lo tendremos en cuenta para la migración a V17 que estamos llevando a cabo. |
ping @pedrobaeza |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ocabot merge minor
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 5481e6a. Thanks a lot for contributing to OCA. ❤️ |
Implement more error texts when:
More unit tests have been added.