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_invited_member_ids
| Inputs | Method | Outputs |
|---|---|---|
|
|
+ members_by_channel = { + channel: self.env["discuss.channel.member"].browse(member_ids) + for channel, member_ids in self.env["discuss.channel.member"]._read_group( + [("channel_id", "in", self.ids), ("rtc_inviting_session_id", "!=", False)], + ["channel_id"], + ["id:array_agg"], + ) + } + for channel in self: + channel.invited_member_ids = members_by_channel.get(channel) |
|
