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 - Project

Entity: fsm.location

Compute Method: _compute_project_count

Inputs Method Outputs
  • id
for location in self:
            location.project_count = self.env["project.project"].search_count(
                [("fsm_location_id", "=", location.id)]
            )

Back to entity