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_account_statement_import_n43: migration to 17.0 #3576

Conversation

manuelregidor
Copy link
Contributor

@manuelregidor manuelregidor commented May 8, 2024

Standard migration
Depends on OCA/bank-statement-import#692

pedrobaeza and others added 30 commits May 8, 2024 16:05
…bank_statement para importar extractos bancarios N43
…on monedas distintas de euros segun issue OCA#217 y basado en comentario de @fgarciag2001
…baciones extra para obtener el partner extraídas del n43 de Bankia Y Sabadell
Improvements
------------

* Counterpart account automatically detected from N43 type (deactivated for now)
* Tests
* Metafiles updated
* Test adapted to Python 3
* Test coverage improved
…te_type

With this, this is compatible with tests that creates journals before this
module is loaded.
* Standard procedure
* Override method for adding the supported format
* README by fragments
* Tests adapted for new date format and order
…tween type of exception raised adn type of exception catched
Currently translated at 100.0% (14 of 14 strings)

Translation: l10n-spain-12.0/l10n-spain-12.0-l10n_es_account_bank_statement_import_n43
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-12-0/l10n-spain-12-0-l10n_es_account_bank_statement_import_n43/gl/
…compatibility with BBVA files (OCA#1056)

Some statement files include BOM data (https://es.wikipedia.org/wiki/Marca_de_orden_de_bytes) at the beginning of the file, making them non readable by current parser, as fixed positions are moved in these cases and thus expected data is not matched.

As ASCII, which is the encoding used in files according specification, is a subset of UTF-8, there's no danger in using it with the variant 'utf-8-sig' for handling if BOM marker is present or not.
…n tests with other statement import modules

Journal in context should be available since the beginning, as it can be used in default get for example.
…r importers

- Don't store in `note` field temporary data for later operations
- Don't force N43 partner detection if other importers fill `note` field.
- Rename some methods for avoiding possible collapses.

Closes OCA#1350 OCA#1363
Currently translated at 100.0% (15 of 15 strings)

Translation: l10n-spain-13.0/l10n-spain-13.0-l10n_es_account_bank_statement_import_n43
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-13-0/l10n-spain-13-0-l10n_es_account_bank_statement_import_n43/es/
…lient

Other modules can add a partner called "Test partner", as the name is very generic,
provoking an error in the test. We specify another name that don't collapse with other
data for avoiding it.
pedrobaeza and others added 9 commits May 8, 2024 16:05
If we have very short concepts, there's a chance that the stripped
text on the subsequent bank patterns matches with a partner, without the
concept being really a partner.

Example: "2301IMPUESTOS", taking "ESTOS" as name to match, which can
match with "GESTOS S.L.".

For avoiding this, we put a minimal string length of 8 chars for making
the match.

TT44038
…nce (same as v13)

The reference was removed by mistake:
- Migration to 14.0 OCA@51181af#diff-f258811a1845bb979e1b791f3ba00780796578f57ce356f088cd176425b1aff2R366 (ref is changed to payment_ref)
- Remove name assignment (OCA@62f5186#diff-f258811a1845bb979e1b791f3ba00780796578f57ce356f088cd176425b1aff2R365) (payment_ref is now set with conceptos)
- Populate payment_ref if not conceptos: OCA@4fb2933

TT45629
@manuelregidor
Copy link
Contributor Author

manuelregidor commented May 8, 2024

@manuelregidor manuelregidor force-pushed the 17.0-mig-l10n_es_account_statement_import_n43 branch from 6453205 to 82c69fb Compare May 8, 2024 14:21
Copy link
Contributor

@Jesarregui Jesarregui left a comment

Choose a reason for hiding this comment

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

LGTM
Revisión funcional

@manuelregidor manuelregidor force-pushed the 17.0-mig-l10n_es_account_statement_import_n43 branch from 82c69fb to d7fdac9 Compare May 15, 2024 05:58
@manuelregidor
Copy link
Contributor Author

@HaraldPanten @ValentinVinagre Ya está la dependencia migrada

Copy link
Contributor

@HaraldPanten HaraldPanten left a comment

Choose a reason for hiding this comment

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

Se revisó el funcionamiento durante las jornadas, utilizando dependencia + PR de migración en entorno local. Se importó un extracto real sin problema.

Doy por válida la revisión funcional.

@pedrobaeza

@HaraldPanten
Copy link
Contributor

/ocabot migration l10n_es_account_statement_import_n43

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone May 15, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request May 15, 2024
49 tasks
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.

/ocabot merge nobump

@OCA-git-bot
Copy link
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). 🤖

1 similar comment
@OCA-git-bot
Copy link
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
Contributor

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

@OCA-git-bot OCA-git-bot merged commit d1ba41d into OCA:17.0 May 15, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@HaraldPanten HaraldPanten deleted the 17.0-mig-l10n_es_account_statement_import_n43 branch May 15, 2024 09:26
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.