diff --git a/newsfragments/+improving-psql-command-default-db.misc b/newsfragments/+improving-psql-command-default-db.misc new file mode 100644 index 0000000..952d5c2 --- /dev/null +++ b/newsfragments/+improving-psql-command-default-db.misc @@ -0,0 +1,2 @@ +set a default 'postgres' database in ``oow psql`` command, to avoid force user +to set a database, in case of dbless command. diff --git a/odoo_openupgrade_wizard/cli/cli_options.py b/odoo_openupgrade_wizard/cli/cli_options.py index 63d462c..76f7df8 100644 --- a/odoo_openupgrade_wizard/cli/cli_options.py +++ b/odoo_openupgrade_wizard/cli/cli_options.py @@ -59,6 +59,7 @@ def database_option_required(function): "--database", required=True, prompt=True, + default="postgres", type=str, help="Odoo Database for which you want to perform the operation.", )(function)