Skip to content

[FIX] base_import: handle CSV extension case-insensitively - #236348

Closed
fw-bot wants to merge 1 commit into
odoo:saas-18.4from
odoo-dev:saas-18.4-17.0-case-insensitive-csv-fix-sauc-478137-fw
Closed

[FIX] base_import: handle CSV extension case-insensitively#236348
fw-bot wants to merge 1 commit into
odoo:saas-18.4from
odoo-dev:saas-18.4-17.0-case-insensitive-csv-fix-sauc-478137-fw

Conversation

@fw-bot

@fw-bot fw-bot commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Before this fix, the import side panel displayed the formatting options
only when the uploaded file had a lowercase .csv extension.
Files with an uppercase .CSV extension could still be imported but did
not show the format selection section, leading to inconsistent behavior.

This commit updates the condition to perform a
case-insensitive comparison on the file extension.

Task-5145031


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #236020
Forward-Port-Of: #235061

@robodoo

robodoo commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@robodoo robodoo added forwardport This PR was created by @fw-bot conflict There was an error while creating this forward-port PR labels Nov 18, 2025
@fw-bot

fw-bot commented Nov 18, 2025

Copy link
Copy Markdown
Contributor Author

@sauc-odoo @aab-odoo cherrypicking of pull request #235061 failed.

stdout:

CONFLICT (modify/delete): addons/base_import/static/tests/import_action_tests.js deleted in 02e9b3d914fe4375de869ae09bfef008c3e63e6d and modified in ba0cd54d866277e08315f885e58312e8cbb7ffaa.  Version ba0cd54d866277e08315f885e58312e8cbb7ffaa of addons/base_import/static/tests/import_action_tests.js left in tree.

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @robodoo.

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

Before this fix, the import side panel displayed the
formatting options only when the uploaded file had
a lowercase .csv extension.
Files with an uppercase .CSV extension could still be
imported but did not show the format selection
section, leading to inconsistent behavior.

This commit updates the condition to perform a
case-insensitive comparison on the file extension.

Task-5145031

X-original-commit: 33b4e76
@sauc-odoo
sauc-odoo force-pushed the saas-18.4-17.0-case-insensitive-csv-fix-sauc-478137-fw branch from 34e4188 to bee2a0e Compare November 19, 2025 06:07
@C3POdoo
C3POdoo requested review from a team, kmagusiak and rugo-odoo and removed request for a team November 19, 2025 06:10
@sauc-odoo

Copy link
Copy Markdown
Contributor

@robodoo r+
Conflict resolved and test case converted to HOOT.

cc @aab-odoo

robodoo pushed a commit that referenced this pull request Nov 19, 2025
Before this fix, the import side panel displayed the
formatting options only when the uploaded file had
a lowercase .csv extension.
Files with an uppercase .CSV extension could still be
imported but did not show the format selection
section, leading to inconsistent behavior.

This commit updates the condition to perform a
case-insensitive comparison on the file extension.

Task-5145031

closes #236348

X-original-commit: 33b4e76
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Saurabh Choraria (sauc) <sauc@odoo.com>
@robodoo robodoo closed this Nov 19, 2025
@fw-bot
fw-bot deleted the saas-18.4-17.0-case-insensitive-csv-fix-sauc-478137-fw branch November 26, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflict There was an error while creating this forward-port PR forwardport This PR was created by @fw-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants