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_self_member_id
| Inputs | Method | Outputs |
|---|---|---|
|
|
- member_by_channel = { - channel: self.env["discuss.channel.member"].browse(member_id) - for channel, member_id in self.env["discuss.channel.member"]._read_group( - [("channel_id", "in", self.ids), ("is_self", "=", True)], ["channel_id"], ["id:max"] - ) - } - for channel in self: - channel.self_member_id = member_by_channel.get(channel) |
|
