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

Entity: res.partner

Compute Method: _compute_owned_location_count

View 17.0 View 19.0
Inputs Method Outputs
  • id
for partner in self:
            partner.owned_location_count = self.env["fsm.location"].search_count(
-                 [("owner_id", "child_of", partner.id)]
+                 Domain("owner_id", "child_of", partner.id)
            )
  • owned_location_count

Back to entity