Skip to content

Commit 96f3465

Browse files
committed
Merge PR OCA#3219 into 18.0
Signed-off-by StefanRijnhart
2 parents 72f74aa + fe0029f commit 96f3465

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

upgrade_analysis/models/upgrade_analysis.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ def _write_file(
8787
module = self.env["ir.module.module"].search([("name", "=", module_name)])[0]
8888
if module.is_odoo_module:
8989
if not self.upgrade_path:
90-
return (
91-
f"ERROR: no upgrade_path set when writing analysis of "
92-
f"{module_name}\n"
93-
)
90+
self._compute_upgrade_path()
91+
if not self.upgrade_path:
92+
return (
93+
f"ERROR: no upgrade_path set when writing analysis of "
94+
f"{module_name}\n"
95+
)
9496
full_path = os.path.join(self.upgrade_path, module_name, version)
9597
else:
9698
full_path = os.path.join(

0 commit comments

Comments
 (0)