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
  • id
for fsm_location in self:
            fsm_location.opportunity_count = self.env["crm.lead"].search_count(
                Domain("fsm_location_id", "=", fsm_location.id)
            )

Back to entity