diff --git a/trytond/trytond/backend/postgresql/database.py b/trytond/trytond/backend/postgresql/database.py index 4e1c61aaf9..bcbf462b1c 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(), } return params