Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: CRM

Entity: digest.digest

Compute Method: _compute_kpi_crm_lead_created_value

View 19.0 View 20.0
Inputs Method Outputs
- if not self.env.user.has_group('sales_team.group_sale_salesman'):
-             raise AccessError(_("Do not have access, skip this data for user's digest email"))
- self._calculate_company_based_kpi('crm.lead', 'kpi_crm_lead_created_value')
+ self._raise_if_not_member_of('sales_team.group_sale_salesman')
+ self._calculate_kpi('crm.lead', 'kpi_crm_lead_created_value')

Back to entity