19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:27 +01:00
parent d1963a3c3a
commit 2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions

View file

@ -82,6 +82,12 @@ def initialize(cr: Cursor) -> None:
(module_id, d, d in (info['auto_install'] or ()))
)
from odoo.tools import config # noqa: PLC0415
if config.get('skip_auto_install'):
# even if skip_auto_install is enabled we still want to have base
cr.execute("""UPDATE ir_module_module SET state='to install' WHERE name = 'base'""")
return
# Install recursively all auto-installing modules
while True:
# this selects all the auto_install modules whose auto_install_required
@ -168,10 +174,9 @@ def has_unaccent(cr: BaseCursor) -> FunctionStatus:
cr.execute("""
SELECT p.provolatile
FROM pg_proc p
LEFT JOIN pg_catalog.pg_namespace ns ON p.pronamespace = ns.oid
WHERE p.proname = 'unaccent'
AND p.pronamespace = current_schema::regnamespace
AND p.pronargs = 1
AND ns.nspname = 'public'
""")
result = cr.fetchone()
if not result: