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

Module: Discuss

Entity: discuss.channel

Compute Method: _compute_is_member

View 17.0
Inputs Method Outputs
- if not self:
-             return
- members = self.env['discuss.channel.member'].search([('channel_id', 'in', self.ids), ('is_self', '=', True)])
- is_member_channels = members.channel_id
- for channel in self:
-             channel.is_member = channel in is_member_channels
  • is_member

Back to entity