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

    <!-- Agreement Renewal Type List View-->
    <record model="ir.ui.view" id="partner_agreement_renewaltype_list_view">
        <field name="name">Agreement Renewal Type List</field>
        <field name="model">agreement.renewaltype</field>
        <field name="arch" type="xml">
            <tree default_order='name'>
                <field name="name"/>
                <field name="description"/>
            </tree>
        </field>
    </record>

    <!-- Agreement Renewal Type Form View -->
    <record model="ir.ui.view" id="partner_agreement_renewaltype_form_view">
        <field name="name">Agreement Renewal Type Form</field>
        <field name="model">agreement.renewaltype</field>
        <field name="arch" type="xml">
            <form string="Agreements Type Form">
                <sheet>
                    <group>
                        <field name="name"/>
                    </group>
                    <group string="Description">
                        <field name="description" nolabel="1"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <!-- Actions opening views on models -->
    <record model="ir.actions.act_window" id="partner_agreement_action_renewaltype">
        <field name="name">Agreement Renewal Type</field>
        <field name="res_model">agreement.renewaltype</field>
        <field name="view_mode">tree,form</field>
    </record>

</odoo>
