Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Upgrade Analysis

Entity: upgrade.analysis

Compute Method: _compute_upgrade_path

View 18.0 View 19.0
Inputs Method Outputs
"""Return the --upgrade-path configuration option or the `scripts`
        directory in `openupgrade_scripts` if available
        """
- res = config.get("upgrade_path", False)
- if not res:
+ res = False
+ upgrade_path = config.get("upgrade_path", [])
+ if not upgrade_path:
            module_path = get_module_path("openupgrade_scripts", display_warning=False)
            if module_path:
                res = os.path.join(module_path, "scripts")
+         else:
+             res = upgrade_path[0]
self.upgrade_path = res
  • upgrade_path

Back to entity