<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <!-- Hide the standalone Fusion Faxes top-level menu -->
    <record id="fusion_faxes.menu_fusion_faxes_root" model="ir.ui.menu">
        <field name="active" eval="False"/>
    </record>

    <!-- Faxes submenu under Fusion RingCentral -->
    <menuitem id="menu_rc_faxes"
              name="Faxes"
              parent="menu_rc_root"
              sequence="30"/>

    <menuitem id="menu_rc_fax_all"
              name="All Faxes"
              parent="menu_rc_faxes"
              action="fusion_faxes.action_fusion_fax"
              sequence="10"/>

    <menuitem id="menu_rc_fax_received"
              name="Received Faxes"
              parent="menu_rc_faxes"
              action="fusion_faxes.action_fusion_fax_received"
              sequence="20"/>

    <menuitem id="menu_rc_fax_sent"
              name="Sent Faxes"
              parent="menu_rc_faxes"
              action="fusion_faxes.action_fusion_fax_sent"
              sequence="30"/>

    <menuitem id="menu_rc_fax_send"
              name="Send Fax"
              parent="menu_rc_faxes"
              action="fusion_faxes.action_send_fax_wizard"
              sequence="5"/>

    <menuitem id="menu_rc_fax_dashboard"
              name="Fax Dashboard"
              parent="menu_rc_faxes"
              action="fusion_faxes.action_fusion_fax_dashboard"
              sequence="40"/>

</odoo>
