Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Field Service - CRM
Entity: fsm.location
Compute Method: _compute_opportunity_count
| Inputs | Method | Outputs |
|---|---|---|
|
for fsm_location in self:
fsm_location.opportunity_count = self.env["crm.lead"].search_count(
- [("fsm_location_id", "=", fsm_location.id)]
+ Domain("fsm_location_id", "=", fsm_location.id)
)
|
|
