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_group_public_id

Inputs Method Outputs
channels = self.filtered(lambda channel: channel.channel_type == 'channel')
channels.filtered(
            lambda channel: not channel.parent_channel_id and not channel.group_public_id
        ).group_public_id = self.env.ref("base.group_user")
(self - channels).group_public_id = None

Back to entity