mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 18:32:07 +02:00
17.0 vanilla
This commit is contained in:
parent
2e65bf056a
commit
df627a6bba
328 changed files with 578149 additions and 759311 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue