Skip to content

Commit

Permalink
[MIG] crm_partner_company_group: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Osman committed Apr 4, 2024
1 parent 8d1e74c commit c53beb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crm_partner_company_group/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "CRM Partner Company Group",
"summary": "Adds the possibility to add a company group to a company",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Sales",
"author": "Camptocamp SA, Odoo Community Association (OCA)",
"license": "AGPL-3",
Expand Down
4 changes: 2 additions & 2 deletions crm_partner_company_group/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import logging


def pre_init_hook(cr):
def pre_init_hook(env):
"""Prepopulate stored related fields for faster installation"""
logger = logging.getLogger(__name__)
logger.info("Prepopulating stored related fields")
cr.execute(
env.execute(
"""
ALTER TABLE crm_lead
ADD COLUMN IF NOT EXISTS company_group_id integer;
Expand Down

0 comments on commit c53beb5

Please sign in to comment.