diff --git a/trytond/trytond/backend/postgresql/database.py b/trytond/trytond/backend/postgresql/database.py index fe816e228c..faa27e9621 100644 --- a/trytond/trytond/backend/postgresql/database.py +++ b/trytond/trytond/backend/postgresql/database.py @@ -249,7 +249,7 @@ class Database(DatabaseInterface): if uri.path and uri.path != '/': warnings.warn("The path specified in the URI will be overridden") params = { - 'dsn': uri._replace(path=name).geturl(), + 'dsn': uri._replace(path='/' + name).geturl(), 'fallback_application_name': os.environ.get( 'TRYTOND_APPNAME', 'trytond'), }