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

[14.0] [MIG] account_statement_import_coda #130

Merged

Conversation

marielejeune
Copy link
Contributor

No description provided.

lmignon and others added 30 commits February 1, 2022 11:54
The module is a rewrite of l10n_be_coda using the pycoda parser.
Use the Structured Communication as name else use the communication if it's provided else use '/'.
If the line is a details line use the communication from the related globalisation as name.
The module now depends of l10n_be_coda since the first one is automatically installed when installing l10n_be. The menuitem 'Import Coda File' from l10n_be_coda is  however removed to avoid confusion and force the use of the current module
…ote of statement line with the same transaction_ref
The declaration prevents the install of the module if the dependency is not met
…ty constraint with the demo data of l10n_be_coda.
this makes the test more robust (the previous version
did not work in presence of account_constraints, and
could not be run twice in a row on the same database)
oca-transbot and others added 7 commits February 1, 2022 11:54
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-belgium-12.0/l10n-belgium-12.0-account_bank_statement_import_coda
Translate-URL: https://translation.odoo-community.org/projects/l10n-belgium-12-0/l10n-belgium-12-0-account_bank_statement_import_coda/
[MIG] account_bank_statement_import_coda: Migration to 13.0

[MIG] account_bank_statement_import_coda: Migration to 13.0

[MIG] account_bank_statement_import_coda: Migration to 13.0

[UPD] Update account_bank_statement_import_coda.pot

[UPD] README.rst
@marielejeune marielejeune marked this pull request as draft February 1, 2022 16:39
@marielejeune marielejeune marked this pull request as ready for review February 1, 2022 16:44
@marielejeune marielejeune changed the title 14.0 mig account bank statement import coda [14.0] [MIG] account_statement_import_coda Feb 1, 2022
@marielejeune
Copy link
Contributor Author

marielejeune commented Feb 2, 2022

Migration of account_bank_statement_import_coda from v13 to v14. Changed the name of the module to follow what was done for account_statement_import.

Copy link
Contributor

@houssine78 houssine78 left a comment

Choose a reason for hiding this comment

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

LGTM

@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). 🤖

@houssine78
Copy link
Contributor

@robinkeunen I think we have a PR ready to me merged here

Copy link

@gva-acsone gva-acsone left a comment

Choose a reason for hiding this comment

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

LGTM

@sbidoul
Copy link
Member

sbidoul commented Feb 14, 2022

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 14.0-ocabot-merge-pr-130-by-sbidoul-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b63bae4 into OCA:14.0 Feb 14, 2022
@OCA-git-bot
Copy link
Contributor

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

@sbidoul sbidoul deleted the 14.0-mig-account_bank_statement_import_coda branch February 14, 2022 14:41
if line.transaction_amount_sign == AmountSign.DEBIT:
amount = -amount
return {
"name": self.get_st_line_name(line, globalisation_dict),

Choose a reason for hiding this comment

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

Now that account.bank.statement.line inherit from account.move, you're not supposed to force the "name" in this dict! Otherwise, the move will not have the "name" set by this code instead of having the "name" set by the journal like all the other moves. You should just set "payment_ref".

Copy link
Contributor Author

@marielejeune marielejeune Nov 17, 2022

Choose a reason for hiding this comment

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

Hi @alexis-via. I agree with you. A PR was opened several months ago with this fix, but wasn't approved yet. See #139

Btw, a second PR with another fix is here, could you also have a look please? #140

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.