Skip to content

[18.0][FIX]openupgrade_framework: Fix Nonetype Error when install_filename …#5448

Merged
pedrobaeza merged 1 commit into
OCA:18.0from
Comunitea:18.0-fix-path-info-none
Nov 10, 2025
Merged

[18.0][FIX]openupgrade_framework: Fix Nonetype Error when install_filename …#5448
pedrobaeza merged 1 commit into
OCA:18.0from
Comunitea:18.0-fix-path-info-none

Conversation

@javierjcf

@javierjcf javierjcf commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

…path does not exist

In my doodba insrtance, migrating this week to v18 fail since this commit :527770f

path_info = get_resource_from_path(self._context["install_filename"])
if path_info[0] == "openupgrade_scripts":

Although the install_filename key exists in self._context, the function get_resource_from_path returns None for my environment. Consequently, attempting to access path_info[0] raises an error (e.g., TypeError: 'NoneType' object is not subscriptable), which breaks the migration process.

A necessary fix would be to add a check for the existence of path_info before attempting to access its elements:

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @StefanRijnhart, @hbrunn, @legalsylvain,
some modules you are maintaining are being modified, check this out!

@javierjcf javierjcf changed the title [18.0][FIX]openupgrade_framework: Fix Nonetype Error when install_filenmae … [18.0][FIX]openupgrade_framework: Fix Nonetype Error when install_filename … Nov 10, 2025
@pedrobaeza pedrobaeza added this to the 18.0 milestone Nov 10, 2025
@pedrobaeza pedrobaeza merged commit 6422275 into OCA:18.0 Nov 10, 2025
4 checks passed
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