[IMP] 'run' cli command. Add '--update-modules' option
This commit is contained in:
parent
d890a460ea
commit
dbdf592990
|
|
@ -29,6 +29,12 @@ from odoo_openupgrade_wizard.tools.tools_postgres import ensure_database
|
|||
type=str,
|
||||
help="List of modules to install. Equivalent to -i odoo options.",
|
||||
)
|
||||
@click.option(
|
||||
"-u",
|
||||
"--update-modules",
|
||||
type=str,
|
||||
help="List of modules to update. Equivalent to -u odoo options.",
|
||||
)
|
||||
@click.option(
|
||||
"-e",
|
||||
"--execution-context",
|
||||
|
|
@ -45,6 +51,7 @@ def run(
|
|||
with_demo,
|
||||
stop_after_init,
|
||||
init_modules,
|
||||
update_modules,
|
||||
execution_context,
|
||||
):
|
||||
migration_step = get_migration_step_from_options(ctx, step)
|
||||
|
|
@ -56,6 +63,7 @@ def run(
|
|||
database=database,
|
||||
detached_container=not stop_after_init,
|
||||
init=init_modules,
|
||||
update=update_modules,
|
||||
stop_after_init=stop_after_init,
|
||||
demo=with_demo,
|
||||
execution_context=execution_context,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user