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 May 6, 2024
1 parent bf07bf2 commit f0ef2ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 47 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(

Check warning on line 10 in crm_partner_company_group/hooks.py

View check run for this annotation

Codecov / codecov/patch

crm_partner_company_group/hooks.py#L8-L10

Added lines #L8 - L10 were not covered by tests
"""
ALTER TABLE crm_lead
ADD COLUMN IF NOT EXISTS company_group_id integer;
Expand Down
44 changes: 0 additions & 44 deletions crm_partner_company_group/i18n/partner_company_group.pot

This file was deleted.

0 comments on commit f0ef2ec

Please sign in to comment.