Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Helpdesk Mgmt Fieldservice
Entity: fsm.location
Compute Method: _compute_ticket_count
| Inputs | Method | Outputs |
|---|---|---|
|
|
+ counts = dict( + self.env["helpdesk.ticket"]._read_group( + domain=[("fsm_location_id", "in", self.ids)], + groupby=["fsm_location_id"], + aggregates=["__count"], + ) + ) + for rec in self: + rec.ticket_count = counts.get(rec, 0) |
|
