From bb0a0670e761f3b4400f5ca8aef909ccb16998f4 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Tue, 3 May 2022 23:23:29 +0200 Subject: [PATCH] fixup! fixup! fixup! [IMP] make modular port on host. default with 9069 and 9432 to avoid conflict on host that regularly expose 8069 and 5432 --- odoo_openupgrade_wizard/cli_run.py | 6 ++++-- odoo_openupgrade_wizard/tools_odoo.py | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/odoo_openupgrade_wizard/cli_run.py b/odoo_openupgrade_wizard/cli_run.py index 965889e..73949b8 100644 --- a/odoo_openupgrade_wizard/cli_run.py +++ b/odoo_openupgrade_wizard/cli_run.py @@ -39,8 +39,10 @@ def run(ctx, step, database, stop_after_init, init_modules): stop_after_init=stop_after_init, ) if not stop_after_init: - # todo, WRITE A TEXT TO SAY : the service is available on - # http://localhost:xxxx + logger.info( + "Odoo is available on your host at http://localhost:%d" + % (ctx.obj["config"]["host_odoo_xmlrpc_port"]) + ) input("Press 'Enter' to kill the odoo container and exit ...") except (KeyboardInterrupt, SystemExit): logger.info("Received Keyboard Interrupt or System Exiting...") diff --git a/odoo_openupgrade_wizard/tools_odoo.py b/odoo_openupgrade_wizard/tools_odoo.py index 0c0aa1d..e13e127 100644 --- a/odoo_openupgrade_wizard/tools_odoo.py +++ b/odoo_openupgrade_wizard/tools_odoo.py @@ -23,7 +23,6 @@ def get_odoo_addons_path(ctx, root_path: Path, migration_step: dict) -> str: addons_path = [] for key in data.keys(): path = root_path / Path(key) - print(path) if str(path).endswith(get_odoo_folder(migration_step)): # Add two folder for odoo folder addons_path.append(path / Path("addons"))