The method _compute_probability has a dynamic depends, that depends on the crm.pls_fields config parameter. When installing the DB, the depends is evaluated. If the config parameter is modified afterwards, the depends is not re-evaluated as the registry is not rebuilt. The result is that when modifying the config parameter, if an optional pls_field's value is modified on a record, the compute won't be triggered, as that pls_field is not in the compute's depends. This commit force to re-setup the registry after a modification (or the creation) of the crm.pls_fields config parameter, in order to force the depends of the _compute_probability method to be updated. Task ID: 2341829 closes odoo/odoo#58165 X-original-commit: e95afbedc18d198454c7f66b523c4cafb19a4066 Signed-off-by: Raphael Collet (rco) <rco@openerp.com> Signed-off-by: David Beguin <dbeguin@users.noreply.github.com>
17 lines
454 B
Python
17 lines
454 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import res_users
|
|
from . import calendar
|
|
from . import crm_lead
|
|
from . import crm_lost_reason
|
|
from . import crm_stage
|
|
from . import crm_team
|
|
from . import ir_config_parameter
|
|
from . import res_config_settings
|
|
from . import res_partner
|
|
from . import digest
|
|
from . import crm_lead_scoring_frequency
|
|
from . import utm
|
|
from . import crm_recurring_plan
|