mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-11-15 02:32:04 +00:00
16 lines
454 B
Python
16 lines
454 B
Python
|
# Copyright 2022 Tecnativa - Víctor Martínez
|
||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||
|
import logging
|
||
|
|
||
|
|
||
|
def pre_init_hook(env):
|
||
|
"""Prepopulate stored related fields for faster installation"""
|
||
|
logger = logging.getLogger(__name__)
|
||
|
logger.info("Prepopulating stored related fields")
|
||
|
env.execute(
|
||
|
"""
|
||
|
ALTER TABLE sale_order
|
||
|
ADD COLUMN IF NOT EXISTS company_group_id integer;
|
||
|
"""
|
||
|
)
|