mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 03:52:01 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue