
                [
                    ('is_self', '=', True),
                    "|",
                        ("channel_id.channel_type", "!=", "channel"),
                        "|",
                            "&",
                                ("channel_id.parent_channel_id", "=", False),
                                "|",
                                    ("channel_id.group_public_id", "=", False),
                                    ("channel_id.group_public_id", "in", user.groups_id.ids),
                            "&",
                                ("channel_id.parent_channel_id", "!=", False),
                                "|",
                                    ("channel_id.parent_channel_id.group_public_id", "=", False),
                                    ("channel_id.parent_channel_id.group_public_id", "in", user.groups_id.ids),
                ]
            