17.0 vanilla

This commit is contained in:
Ernad Husremovic 2025-10-03 18:05:14 +02:00
parent 2e65bf056a
commit df627a6bba
328 changed files with 578149 additions and 759311 deletions

View file

@ -160,6 +160,13 @@ def _create_empty_database(name):
_logger.warning("Unable to create PostgreSQL extensions : %s", e)
_check_faketime_mode(name)
# restore legacy behaviour on pg15+
try:
db = odoo.sql_db.db_connect(name)
with db.cursor() as cr:
cr.execute("GRANT CREATE ON SCHEMA PUBLIC TO PUBLIC")
except psycopg2.Error as e:
_logger.warning("Unable to make public schema public-accessible: %s", e)
@check_db_management_enabled
def exp_create_database(db_name, demo, lang, user_password='admin', login='admin', country_code=None, phone=None):