<?xml version="1.0"?>
<kanban>
                    <field name="id"/>
                    <field name="description"/>
                    <field name="is_member"/>
                    <field name="group_ids"/>
                    <templates>
                        <t t-name="kanban-description">
                            <div class="oe_group_description" t-if="record.description.raw_value">
                                <field name="description"/>
                            </div>
                        </t>
                        <t t-name="kanban-box">
                            <div class="oe_module_vignette oe_kanban_global_click d-flex align-items-center">
                                <img t-att-src="kanban_image('mail.channel', 'avatar_128', record.id.raw_value)" class="oe_module_icon" alt="Channel"/>
                                <div class="oe_module_desc">
                                    <h4 class="o_kanban_record_title">#<field name="name"/></h4>
                                    <p class="oe_module_name">
                                        <field name="description"/>
                                    </p>
                                    <button type="object" attrs="{'invisible':['|', ('is_member','=',True), ('group_ids', '!=', [])]}" class="btn btn-primary float-end" name="channel_join">Join</button>
                                    <button type="object" attrs="{'invisible':['|', ('is_member','=',False), ('group_ids', '!=', [])]}" class="btn btn-secondary float-end" name="action_unfollow">Leave</button>
                                </div>
                            </div>
                        </t>
                    </templates>
                </kanban>
            