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][FIX] account_statement_import_base: sanitized acc number #729

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

remytms
Copy link

@remytms remytms commented Oct 18, 2024

The field acc_number in the database is not sanitized by default.

This leads to account_bank_statement_line with an empty partner_id because the check done in _statement_line_import_update_hook() uses the sanitized_acc_number instead of the acc_number.

For a right comparison the sanitized version of the acc_number should be put in the speeddict.

@OCA-git-bot
Copy link
Contributor

Hi @alexis-via,
some modules you are maintaining are being modified, check this out!

@remytms remytms changed the title [FIX] a_s_import_base: sanitized acc number [16.0][FIX] a_s_import_base: sanitized acc number Oct 18, 2024
@pedrobaeza pedrobaeza added this to the 16.0 milestone Oct 19, 2024
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.

OK about the content. Please avoid the abbreviation in the module name for the commit message.

The field acc_number in the database is not sanitized by default.

This leads to account_bank_statement_line with an empty partner_id
because the check done in _statement_line_import_update_hook()
uses the sanitized_acc_number instead of the acc_number.

For a right comparison the sanitized version of the acc_number should be
put in the speeddict.
@remytms remytms force-pushed the 16.0-fix-account_statement_import_base-sanitized_acc_number branch from af52cb0 to d4dfcd5 Compare October 20, 2024 11:21
@remytms remytms changed the title [16.0][FIX] a_s_import_base: sanitized acc number [16.0][FIX] account_statement_import_base: sanitized acc number Oct 20, 2024
@remytms
Copy link
Author

remytms commented Oct 20, 2024

Thanks @pedrobaeza Commit has been fixed.

Copy link
Member

@victor-champonnois victor-champonnois left a comment

Choose a reason for hiding this comment

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

Functional review OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants