Skip to content

[DOCS][IMP] run_migration: Recommended command - #5842

Merged
legalsylvain merged 1 commit into
OCA:documentationfrom
PyTech-SRL:docs-rem_upgrade_path
Jul 28, 2026
Merged

legalsylvain merged 1 commit into
OCA:documentationfrom
PyTech-SRL:docs-rem_upgrade_path

Conversation

@SirPyTech

Copy link
Copy Markdown

The --upgrade-path option is automatically added in

if not config.get("upgrade_path"):
path = get_module_path("openupgrade_scripts", display_warning=False)
if path:
logging.getLogger(__name__).info(
"Setting upgrade_path to the scripts directory inside the module "
"location of openupgrade_scripts"
)
config["upgrade_path"] = os.path.join(path, "scripts")
.

I have always been using the --upgrade-path option because it is the "Recommended command", and then a few days ago @HekkiMelody points me out this piece of code 👀
Should we change the "Recommended command"?

The --upgrade-path option is automatically added

@legalsylvain legalsylvain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !

@legalsylvain
legalsylvain merged commit d75a98c into OCA:documentation Jul 28, 2026
2 checks passed
@HekkiMelody
HekkiMelody deleted the docs-rem_upgrade_path branch July 28, 2026 07:24
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