<?xml version="1.0"?>
<odoo><data>
    <menuitem name="Discuss"
        id="mail.menu_root_discuss"
        action="action_discuss"
        web_icon="mail,static/description/icon.svg"
        groups="base.group_user"
        sequence="5"
    />

    <record id="base.menu_email" model="ir.ui.menu">
        <field name="sequence">3</field>
    </record>

    <!-- Under Technical/Email -->
    <menuitem name="Emails"
        id="menu_mail_mail"
        parent="base.menu_email"
        action="action_view_mail_mail"
        sequence="1"/>
    <menuitem name="Incoming Mail Servers"
        id="menu_action_fetchmail_server_tree"
        parent="base.menu_email"
        action="action_email_server_tree"
        sequence="6"
        groups="base.group_no_one"/>
    <menuitem id="menu_email_templates"
        parent="base.menu_email"
        action="action_email_template_tree_all"
        sequence="10"/>
    <menuitem id="mail_alias_menu"
        parent="base.menu_email"
        action="action_view_mail_alias"
        sequence="11"
        groups="base.group_no_one"/>
    <menuitem id="mail_channel_menu_settings"
        name="Channels"
        parent="base.menu_email"
        action="mail_channel_action_view"
        sequence="20"
        groups="base.group_no_one"/>
    <menuitem name="Channels/Partner"
        id="mail_channel_member_menu"
        parent="base.menu_email"
        action="mail_channel_member_action"
        sequence="21"
        groups="base.group_no_one"/>
    <menuitem id="mail_gateway_allowed_menu"
        parent="base.menu_email"
        action="mail_gateway_allowed_action"
        sequence="22"
        groups="base.group_no_one"/>

    <!-- Under Technical/Discuss -->
    <menuitem name="Discuss"
        id="mail_menu_technical"
        parent="base.menu_custom"
        sequence="1"/>

    <menuitem name="Messages"
        id="menu_mail_message"
        parent="mail.mail_menu_technical"
        action="action_view_mail_message"
        sequence="1"/>
    <menuitem name="Scheduled Messages"
        id="mail_message_schedule_menu"
        parent="mail.mail_menu_technical"
        action="mail_message_schedule_action"
        sequence="2"/>
    <menuitem name="Subtypes"
        id="menu_message_subtype"
        parent="mail.mail_menu_technical"
        action="action_view_message_subtype"
        sequence="4"/>
    <menuitem name="Tracking Values"
        id="menu_mail_tracking_value"
        parent="mail.mail_menu_technical"
        action="action_view_mail_tracking_value"
        sequence="5"/>

    <menuitem
      id="menu_mail_activity_type"
      action="mail_activity_type_action"
      parent="mail.mail_menu_technical"
      sequence="10"
    />
    <menuitem
      id="menu_mail_activities"
      action="mail_activity_action"
      parent="mail.mail_menu_technical"
      sequence="11"
    />

    <menuitem name="Notifications"
        id="mail_notification_menu"
        parent="mail.mail_menu_technical"
        action="mail_notification_action"
        sequence="20"
        groups="base.group_no_one"/>
    <menuitem name="Followers"
        id="menu_email_followers"
        parent="mail.mail_menu_technical"
        action="action_view_followers"
        sequence="21"
        groups="base.group_no_one"/>
    <menuitem id="mail_blacklist_menu"
        name="Email Blacklist"
        action="mail_blacklist_action"
        parent="mail.mail_menu_technical"
        sequence="22"/>

    <menuitem id="res_users_settings_menu"
        name="User Settings"
        action="res_users_settings_action"
        parent="mail.mail_menu_technical"
        sequence="50"/>
    <menuitem id="mail_guest_menu"
        name="Guests"
        action="mail_guest_action"
        parent="mail.mail_menu_technical"
        sequence="51"/>
    <menuitem id="mail_channel_rtc_session_menu"
        name="RTC sessions"
        action="mail_channel_rtc_session_action"
        parent="mail.mail_menu_technical"
        sequence="52"/>
    <menuitem id="mail_channel_ice_servers_menu"
        name="ICE servers"
        action="action_ice_servers"
        parent="mail.mail_menu_technical"
        sequence="53"/>
    <menuitem id="mail_message_reaction_menu"
        name="Message Reactions"
        action="mail_message_reaction_action"
        parent="mail.mail_menu_technical"
        sequence="54"/>
    <menuitem id="mail_link_preview_menu"
        name="Link Previews"
        action="mail_link_preview_action"
        parent="mail.mail_menu_technical"
        sequence="55"/>

    <!--
        This menuitem will be activated by integrations modules (like github, twitter, ...). It
        is a hook to ease other modules to plug into mail.
    -->
    <record id="mail.mail_channel_integrations_menu" model="ir.ui.menu">
        <field name="name">Integrations</field>
        <field name="parent_id" ref="mail.menu_root_discuss"></field>
        <field name="active" eval="False"></field>
    </record>

</data></odoo>
