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_opportunities_won_value
| 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( + self._raise_if_not_member_of('sales_team.group_sale_salesman') + self._calculate_kpi( 'crm.lead', 'kpi_crm_opportunities_won_value', date_field='date_closed', additional_domain=[('type', '=', 'opportunity'), ('probability', '=', '100')], ) |
|
