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
| Inputs | Method | Outputs |
|---|---|---|
|
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)
)
|
|
