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

View 18.0 View 19.0
Inputs Method Outputs
  • id
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)
            )
  • opportunity_count

Back to entity