Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Course Certifications

Entity: slide.channel

Compute Method: _compute_members_certified_count

View 18.0
Inputs Method Outputs
+ channels_count = self.env['slide.channel.partner'].sudo()._read_group(
+             domain=[('channel_id', 'in', self.ids),
+                     ('survey_certification_success', '=', True)],
+             groupby=['channel_id'],
+             aggregates=['__count']
+         )
+ mapped_data = dict(channels_count)
+ for channel in self:
+             channel.members_certified_count = mapped_data.get(channel, 0)
  • members_certified_count

Back to entity