Skip to content

[15.0][MIG] l10n_es_account_statement_import_n43 - #2070

Merged
OCA-git-bot merged 35 commits into
OCA:15.0from
Bilbonet:15.0-mig-l10n_es_account_statement_import_n43
Feb 21, 2022
Merged

[15.0][MIG] l10n_es_account_statement_import_n43#2070
OCA-git-bot merged 35 commits into
OCA:15.0from
Bilbonet:15.0-mig-l10n_es_account_statement_import_n43

Conversation

@Bilbonet

@Bilbonet Bilbonet commented Feb 1, 2022

Copy link
Copy Markdown
Contributor

Standard migration

pedrobaeza and others added 30 commits January 30, 2022 19:26
…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 5 commits February 1, 2022 13:34
* If the journal has no currency defined, use the company one.
* On v14, the name field is use for the account.move numbering, so it
  collapses with the expected sequence. The proper field is payment_ref.
Currently translated at 94.4% (17 of 18 strings)

Translation: l10n-spain-14.0/l10n-spain-14.0-l10n_es_account_statement_import_n43
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-14-0/l10n-spain-14-0-l10n_es_account_statement_import_n43/es/
…ot conceptos

There are some banks that doesn't populate any record 23 for specifying
concepts, so we need to fallback to the references (although not very
accurate) for avoiding the error as the payment_ref is required.
@Bilbonet
Bilbonet force-pushed the 15.0-mig-l10n_es_account_statement_import_n43 branch from 0e8579c to 7f9d370 Compare February 1, 2022 13:10
@Bilbonet Bilbonet changed the title [MIG] l10n es account statement import n43: migration to 15.0 [15.0][MIG] l10n_es_account_statement_import_n43 Feb 1, 2022
@HaraldPanten

Copy link
Copy Markdown
Contributor

/ocabot migration l10n_es_account_statement_import_n43

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Feb 4, 2022
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 4, 2022
50 tasks

@javidiez javidiez left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I have tried importing the statement in v15 and had no problem.

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-2070-by-pedrobaeza-bump-nobump, awaiting test results.

@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
OCA-git-bot merged commit b1758e9 into OCA:15.0 Feb 21, 2022
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@Bilbonet
Bilbonet deleted the 15.0-mig-l10n_es_account_statement_import_n43 branch March 2, 2022 07:46
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.