<?xml version="1.0"?>
<odoo><data>
    <!-- discuss.channel.member -->
    <record id="discuss_channel_member_view_tree" model="ir.ui.view">
        <field name="name">discuss.channel.member.tree</field>
        <field name="model">discuss.channel.member</field>
        <field name="priority">10</field>
        <field name="arch" type="xml">
            <tree string="Channels">
                <field name="channel_id"/>
                <field name="partner_id"/>
                <field name="guest_id"/>
                <field name="is_pinned"/>
                <field name="last_seen_dt"/>
                <field name="last_interest_dt"/>
            </tree>
        </field>
    </record>

    <record id="discuss_channel_member_view_form" model="ir.ui.view">
        <field name="name">discuss.channel.member.form</field>
        <field name="model">discuss.channel.member</field>
        <field name="arch" type="xml">
            <form string="Channel Member">
                <sheet>
                    <group>
                        <field name="channel_id" readonly="id"/>
                        <field name="partner_id" readonly="id or guest_id" required="not guest_id"/>
                        <field name="guest_id" readonly="id or partner_id" required="not partner_id"/>
                        <field name="custom_channel_name"/>
                        <field name="fetched_message_id"/>
                        <field name="seen_message_id"/>
                        <field name="message_unread_counter"/>
                        <field name="fold_state"/>
                        <field name="is_minimized"/>
                        <field name="custom_notifications"/>
                        <field name="mute_until_dt"/>
                        <field name="is_pinned"/>
                        <field name="last_interest_dt"/>
                        <field name="last_seen_dt"/>
                        <field name="rtc_inviting_session_id"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="discuss_channel_member_action" model="ir.actions.act_window">
        <field name="name">Channels/Members</field>
        <field name="res_model">discuss.channel.member</field>
        <field name="view_mode">tree,form</field>
    </record>

</data></odoo>
