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

    <record id="action_openeducat_configuration" model="ir.actions.act_window">
        <field name="name">Settings</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">res.config.settings</field>
        <field name="path">res-config-settings</field>
        <field name="view_mode">form</field>
        <field name="context">{'module' : 'openeducat_core'}</field>
    </record>
    <!-- Openeducat Menu -->
    <menuitem id="menu_op_school_root"
              name="SIS"
              sequence="220"
              web_icon="openeducat_core,static/description/sis.png"/>

    <menuitem id="menu_op_school_main"
              name="Students"
              parent="menu_op_school_root"
              sequence="10"
              action="act_open_op_student_view"
              groups="group_op_faculty"/>

    <menuitem id="menu_op_faculty_main"
              name="Faculties"
              parent="menu_op_school_root"
              sequence="20"
              action="act_open_op_faculty_view"
              groups="openeducat_core.group_op_faculty"/>

    <menuitem id="menu_op_general_main"
              name="General"
              parent="menu_op_school_root"
              sequence="30"/>

    <!-- Configuration Menu -->
    <menuitem id="menu_op_school_config"
              name="Configuration"
              parent="menu_op_school_root"
              sequence="50"/>

    <menuitem id="menu_op_school_config_course"
              name="Course Management"
              parent="menu_op_school_config"
              sequence="10"/>

    <menuitem id="menu_op_course_sub"
              name="Courses"
              parent="menu_op_school_config_course"
              sequence="10"
              action="act_open_op_course_view"
              groups="group_op_back_office_admin"/>

    <menuitem id="menu_op_batch_sub"
              name="Batches"
              parent="menu_op_school_config_course"
              sequence="20"
              action="act_open_op_batch_view"
              groups="group_op_back_office_admin"/>

    <menuitem id="menu_op_department_sub"
              name="Department"
              parent="menu_op_school_config_course"
              sequence="20"
              action="act_open_op_department_view"
              groups="group_op_back_office_admin"/>

    <menuitem id="menu_op_school_config_subject"
              name="Subject Management"
              parent="menu_op_school_config"
              sequence="20"/>

    <menuitem id="menu_op_subject_sub"
              name="Subjects"
              sequence="10"
              parent="menu_op_school_config_subject"
              action="act_open_op_subject_view"
              groups="group_op_back_office_admin,openeducat_core.group_op_faculty"/>

    <menuitem id="menu_op_school_config_general"
              name="General Management"
              parent="menu_op_school_config"
              sequence="80"/>

    <menuitem id="menu_op_category_sub"
              name="Categories"
              parent="menu_op_school_config_general"
              sequence="40"
              action="act_open_op_category_view"
              groups="openeducat_core.group_op_back_office_admin"/>

    <!-- Activity Root -->
    <menuitem id="menu_op_school_config_activity"
              name="Activity Management"
              parent="menu_op_school_config"
              sequence="40"/>

    <!-- Report Root -->
    <menuitem id="menu_op_report_main"
              name="Reporting"
              parent="menu_op_school_root"
              sequence="40"/>

    <menuitem name="Settings"
              id="menu_openeducat_config"
              action="action_openeducat_configuration"
              parent="menu_op_school_config"
              groups="base.group_system"
              sequence="1"/>

    <menuitem id="menu_academic_year" name="Academic Year"
              sequence="1"
              parent="openeducat_core.menu_op_school_config"
              action="act_op_academic_year_view"
              groups="openeducat_core.group_op_back_office_admin"/>

    <menuitem id="menu_academic_term" name="Academic Term"
              sequence="2"
              parent="openeducat_core.menu_op_school_config"
              action="act_op_academic_term_view"
              groups="openeducat_core.group_op_back_office_admin"/>

    <menuitem id="menu_op_school_config_program"
              name="Program Management"
              parent="openeducat_core.menu_op_school_config"
              sequence="9"/>

    <menuitem id="menu_op_program_sub"
              name="Programs"
              parent="menu_op_school_config_program"
              sequence="10"
              action="act_open_op_program_view"
              groups="group_op_back_office_admin"/>

    <menuitem id="menu_op_program_level_sub"
              name="Program Level"
              parent="menu_op_school_config_program"
              sequence="10"
              action="act_open_op_program_level_view"
              groups="group_op_back_office_admin"/>

</odoo>
