Skip to content

Conversation

Ricardoalso
Copy link
Contributor

Bug introduced in #797

account_move_base_import: ensure the filename is captured properly when a file is uploaded

It was causing the error below:

File "/odoo/external-src/account-reconcile/account_move_base_import/wizard/import_statement.py", line 53, in _check_extension (__, ftype) = os.path.splitext(self.file_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 118, in splitext
TypeError: expected str, bytes or os.PathLike object, not bool

…en a file is uploaded:

It was causing the error below:

File "/odoo/external-src/account-reconcile/account_move_base_import/wizard/import_statement.py", line 53, in _check_extension
(__, ftype) = os.path.splitext(self.file_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen posixpath>", line 118, in splitext
TypeError: expected str, bytes or os.PathLike object, not bool
@Ricardoalso Ricardoalso force-pushed the fix_18.0-mig-account_move_base_import branch from 0b0deab to fc043db Compare June 18, 2025 09:51
@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). 🤖

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.

4 participants