Skip to content

Commit 6422275

Browse files
authored
Merge pull request #5448 from Comunitea/18.0-fix-path-info-none
[18.0][FIX]openupgrade_framework: Fix Nonetype Error when install_filename …
2 parents 73c5015 + 3f00e2d commit 6422275

File tree

1 file changed

+1
-1
lines changed
  • openupgrade_framework/odoo_patch/odoo/addons/base/models

1 file changed

+1
-1
lines changed

openupgrade_framework/odoo_patch/odoo/addons/base/models/ir_ui_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _inverse_arch(self):
9494
"""
9595
if "install_filename" in self._context:
9696
path_info = get_resource_from_path(self._context["install_filename"])
97-
if path_info[0] == "openupgrade_scripts":
97+
if path_info and path_info[0] == "openupgrade_scripts":
9898
self = self.with_context(
9999
{k: v for k, v in self._context.items() if k != "install_filename"}
100100
)

0 commit comments

Comments
 (0)