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_sheet_file: Prevent negative index in parser header #760

Conversation

carlos-lopez-tecnativa
Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa commented Jan 13, 2025

When importing an Excel file with a header and the field header_lines_skip_count is set to its default value (0), the header is retrieved using the -1 index (the last row).
complementary to commit 13285ab

UI Before
image
UI After
image

TT52618
@Tecnativa @pedrobaeza @victoralmau @zaoral could you please review this

…parser header

When importing an Excel file with a header and the field header_lines_skip_count is set to its default value (0), the header is retrieved using the -1 index (the last row).
complementary to commit OCA@13285ab
@OCA-git-bot
Copy link
Contributor

Hi @alexey-pelykh,
some modules you are maintaining are being modified, check this out!

@pedrobaeza pedrobaeza added this to the 16.0 milestone Jan 13, 2025
…tune the UI

Before this commit, the parse_header function was unused. It is now utilized to reduce redundant code and improve maintainability.
Additionally, UI adjustments have been made for better usability and clarity.
@carlos-lopez-tecnativa carlos-lopez-tecnativa force-pushed the 16.0-fix-account_statement_import_sheet_file-index branch from f2a1aee to 6deab7c Compare January 13, 2025 15:32
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.

Let's fast-track this bugfix, as the module is now broken with the prior change.

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-760-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit d318ba1 into OCA:16.0 Jan 13, 2025
7 checks passed
@carlos-lopez-tecnativa carlos-lopez-tecnativa deleted the 16.0-fix-account_statement_import_sheet_file-index branch January 13, 2025 15: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.

3 participants