Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Events Organization
Entity: event.event
Compute Method: _compute_event_slot_count
| Inputs | Method | Outputs |
|---|---|---|
|
|
+ slot_count_per_event = dict(self.env['event.slot']._read_group( + domain=[('event_id', 'in', self.ids)], + groupby=['event_id'], + aggregates=['__count'] + )) + for event in self: + event.event_slot_count = slot_count_per_event.get(event, 0) |
|
