Merge branch '16.0-add-postgres-default-database' into 'main'

[IMP] cli tools: default 'postgres' database.

See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!112
This commit is contained in:
LE GAL SYLVAIN 2025-05-04 13:16:12 +00:00
commit c921663813
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View File

@ -59,6 +59,7 @@ def database_option_required(function):
"--database", "--database",
required=True, required=True,
prompt=True, prompt=True,
default="postgres",
type=str, type=str,
help="Odoo Database for which you want to perform the operation.", help="Odoo Database for which you want to perform the operation.",
)(function) )(function)