diff --git a/README.md b/README.md index 652d59b..7a875d9 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ src/ env_10.0/ extra_debian_requirements.txt Dockerfile - odoo.cfg + odoo.conf extra_python_requirements.txt repos.yml src/ @@ -131,7 +131,7 @@ modules.csv - ``extra_debian_requirements.txt`` enumerates the list of extra system librairies required to run the odoo instance. - - ``odoo.cfg`` file. Add here extra configuration required for your custom modules. + - ``odoo.conf`` file. Add here extra configuration required for your custom modules. the classical keys (``db_host``, ``db_port``, etc...) are automatically autogenerated. diff --git a/odoo_openupgrade_wizard/cli/cli_init.py b/odoo_openupgrade_wizard/cli/cli_init.py index d207cb4..cbf532e 100644 --- a/odoo_openupgrade_wizard/cli/cli_init.py +++ b/odoo_openupgrade_wizard/cli/cli_init.py @@ -145,8 +145,8 @@ def init( # Create odoo config file ensure_file_exists_from_template( - path_version / Path("odoo.cfg"), - "odoo/odoo.cfg.j2", + path_version / Path("odoo.conf"), + "odoo/odoo.conf.j2", ) # Create repos.yml file for gitaggregate tools diff --git a/odoo_openupgrade_wizard/templates/odoo/odoo.cfg.j2 b/odoo_openupgrade_wizard/templates/odoo/odoo.cfg.j2 deleted file mode 100644 index e69de29..0000000 diff --git a/odoo_openupgrade_wizard/templates/odoo/odoo.conf.j2 b/odoo_openupgrade_wizard/templates/odoo/odoo.conf.j2 new file mode 100644 index 0000000..74eb2b7 --- /dev/null +++ b/odoo_openupgrade_wizard/templates/odoo/odoo.conf.j2 @@ -0,0 +1,9 @@ +# This file can be left empty +# The following standard parameters are generated automatically and are +# not required to be found in this file: +# - addons_path +# - connection parameters to the database +# - database name +# - http or xml port +# - etc. +# Only non standard or special options should be specified here. diff --git a/odoo_openupgrade_wizard/tools/tools_odoo.py b/odoo_openupgrade_wizard/tools/tools_odoo.py index b36ddcd..e4e1a22 100644 --- a/odoo_openupgrade_wizard/tools/tools_odoo.py +++ b/odoo_openupgrade_wizard/tools/tools_odoo.py @@ -112,9 +112,9 @@ def generate_odoo_command( odoo_env_path = get_odoo_env_path(ctx, migration_step["version"]) # Compute 'server_wide_modules' - # For that purpose, read the custom odoo.cfg file + # For that purpose, read the custom odoo.conf file # to know if server_wide_modules is defined - custom_odoo_config_file = odoo_env_path / "odoo.cfg" + custom_odoo_config_file = odoo_env_path / "odoo.conf" parser = configparser.RawConfigParser() parser.read(custom_odoo_config_file) server_wide_modules = parser.get( @@ -160,7 +160,7 @@ def generate_odoo_command( result = ( f" {command}" f" {shell_cmd}" - f" --config=/odoo_env/odoo.cfg" + f" --config=/odoo_env/odoo.conf" f" --data-dir=/env/filestore/" f" --addons-path={addons_path}" f" --logfile={log_file_docker_path}"