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

        <!-- ============================================================
             Top-level JB Timesheets Menu
        ============================================================ -->

        <menuitem
            id="menu_jb_timesheet_root"
            name="JB Timesheets"
            sequence="90"
            groups="jb_timesheet.group_timesheet_user"
            web_icon="jb_timesheet,static/description/icon.png"/>

        <!-- Timesheets sub-menu -->
        <menuitem
            id="menu_jb_timesheet_timesheets"
            name="Timesheets"
            parent="menu_jb_timesheet_root"
            sequence="10"/>

        <menuitem
            id="menu_jb_timesheet_all"
            name="All Timesheets"
            parent="menu_jb_timesheet_timesheets"
            action="jb_timesheet.action_jb_timesheets_all"
            sequence="10"
            groups="jb_timesheet.group_timesheet_manager"/>

        <!-- Reporting sub-menu -->
        <menuitem
            id="menu_jb_timesheet_reports"
            name="Reports"
            parent="menu_jb_timesheet_root"
            sequence="20"
            groups="jb_timesheet.group_timesheet_user"/>

        <menuitem
            id="menu_jb_timesheet_report_timesheet_list"
            name="Timesheet List"
            parent="menu_jb_timesheet_reports"
            action="jb_timesheet.action_report_timesheet_list"
            sequence="10"/>

        <menuitem
            id="menu_jb_timesheet_report_office_target"
            name="Office Target"
            parent="menu_jb_timesheet_reports"
            action="jb_timesheet.action_report_office_target"
            sequence="20"
            groups="jb_timesheet.group_timesheet_manager"/>

        <menuitem
            id="menu_jb_timesheet_report_my_target"
            name="My Target"
            parent="menu_jb_timesheet_reports"
            action="jb_timesheet.action_report_my_target"
            sequence="30"/>

        <menuitem
            id="menu_jb_timesheet_report_project_breakdown"
            name="Project Breakdown"
            parent="menu_jb_timesheet_reports"
            action="jb_timesheet.action_report_project_breakdown"
            sequence="40"
            groups="jb_timesheet.group_timesheet_manager"/>

    </data>
</odoo>
