Skip to content

[FIX] account_statement_import_sheet_file_bg: handle OpenPyXL Cell values in sheet header parsing#396

Closed
fw-bot-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-18.0-h-114683-rov-4973-fw
Closed

[FIX] account_statement_import_sheet_file_bg: handle OpenPyXL Cell values in sheet header parsing#396
fw-bot-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-18.0-h-114683-rov-4973-fw

Conversation

@fw-bot-adhoc

Copy link
Copy Markdown
Contributor

Prevent crash when importing XLSX files where header rows are iterated as OpenPyXL Cell objects instead of plain strings.

add parser override in miscellaneous module to normalize header values support both raw strings and Cell instances before calling strip keep OCA module untouched as required
preserve existing behavior for CSV/XLS flows
Fixes:
AttributeError: 'Cell' object has no attribute 'strip'

Alternative (more concise) title:
fix: normalize XLSX header cells before strip in bg statement import

Forward-Port-Of: #395

…lues in sheet header parsing

Prevent crash when importing XLSX files where header rows are iterated as OpenPyXL Cell objects instead of plain strings.

add parser override in miscellaneous module to normalize header values
support both raw strings and Cell instances before calling strip
keep OCA module untouched as required
preserve existing behavior for CSV/XLS flows
Fixes:
AttributeError: 'Cell' object has no attribute 'strip'

Alternative (more concise) title:

Fix: normalize XLSX header cells before strip in bg statement import
X-original-commit: 09812b6
@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@fw-bot-adhoc

Copy link
Copy Markdown
Contributor Author

@rov-adhoc @maq-adhoc this PR targets 19.0 and is the last of the forward-port chain.

To merge the full chain, use

@roboadhoc r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@rov-adhoc

Copy link
Copy Markdown
Contributor

@roboadhoc r+ nobump

@roboadhoc roboadhoc closed this in e7fb30a Apr 9, 2026
@roboadhoc roboadhoc deleted the 19.0-18.0-h-114683-rov-4973-fw branch April 9, 2026 17:29
@roboadhoc roboadhoc added the 18.1 label Apr 9, 2026
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