<odoo>
    <record id="action_overrides" model="ir.actions.act_window">
        <field name="name">CI / statuses overrides</field>
        <field name="res_model">res.partner.override</field>
    </record>
    <record id="tree_overrides" model="ir.ui.view">
        <field name="name">Overrides List</field>
        <field name="model">res.partner.override</field>
        <field name="arch" type="xml">
            <tree editable="bottom">
                <field name="context"/>
                <field name="repository_id"/>
                <field name="partner_ids" widget="many2many_tags"/>
            </tree>
        </field>
    </record>

    <record id="action_review" model="ir.actions.act_window">
        <field name="name">Review Rights</field>
        <field name="res_model">res.partner.review</field>
        <field name="context">{'search_default_group_by_repository': True}</field>
    </record>
    <record id="tree_review" model="ir.ui.view">
        <field name="name">Review Rights</field>
        <field name="model">res.partner.review</field>
        <field name="arch" type="xml">
            <tree editable="bottom">
                <field name="repository_id"/>
                <field name="partner_id"/>
                <field name="review"/>
                <field name="self_review"/>
            </tree>
        </field>
    </record>

    <record id="action_feedback_template" model="ir.actions.act_window">
        <field name="name">Feedback Templates tree</field>
        <field name="res_model">runbot_merge.pull_requests.feedback.template</field>
    </record>
    <record id="tree_feedback_template" model="ir.ui.view">
        <field name="name">Feedback Templates</field>
        <field name="model">runbot_merge.pull_requests.feedback.template</field>
        <field name="arch" type="xml">
            <tree>
                <field name="template"/>
                <field name="help"/>
            </tree>
        </field>
    </record>
    <record id="form_feedback_template" model="ir.ui.view">
        <field name="name">Feedback Templates form</field>
        <field name="model">runbot_merge.pull_requests.feedback.template</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <field name="help"/>
                    <field name="template"/>
                </sheet>
                <div class="oe_chatter">
                    <field name="message_ids"/>
                </div>
            </form>
        </field>
    </record>

    <record id="action_events_sources" model="ir.actions.act_window">
        <field name="name">Events Sources</field>
        <field name="res_model">runbot_merge.events_sources</field>
    </record>
    <record id="tree_events_sources" model="ir.ui.view">
        <field name="name">Events Sources List</field>
        <field name="model">runbot_merge.events_sources</field>
        <field name="arch" type="xml">
            <tree editable="bottom">
                <field name="repository"/>
                <field name="secret"/>
            </tree>
        </field>
    </record>

    <menuitem name="Configuration" id="menu_configuration" parent="runbot_merge_menu">
        <menuitem name="CI Overrides" id="menu_configuration_overrides"
                  action="action_overrides"/>
        <menuitem name="Review Rights" id="menu_configuration_review"
                  action="action_review"/>
        <menuitem name="Feedback Templates" id="menu_configuration_feedback"
                  action="action_feedback_template"/>
        <menuitem name="Events Sources" id="menu_configuration_events_sources"
                  action="action_events_sources"/>
    </menuitem>
</odoo>
