You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
# Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import SUPERUSER_ID from odoo.api import Environment from odoo.tools import config
def post_init_hook(cr, pool): """
We need to activate the rule only if we are not in a test environment. """
if not config["test_enable"]: env = Environment(cr, SUPERUSER_ID, {}) tier_partner = env.ref( "partner_tier_validation.partner_tier_definition_company_only" ) tier_partner.write({"active": True})
|