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

        <record id="view_op_exam_type_tree" model="ir.ui.view">
            <field name="name">op.exam.type.list</field>
            <field name="model">op.exam.type</field>
            <field name="priority" eval="8"/>
            <field name="arch" type="xml">
                <list string="Exam Type">
                    <field name="name"/>
                    <field name="code"/>
                </list>
            </field>
        </record>

        <record id="view_op_exam_type_form" model="ir.ui.view">
            <field name="name">op.exam.type.form</field>
            <field name="model">op.exam.type</field>
            <field name="priority" eval="8"/>
            <field name="arch" type="xml">
                <form string="Exam Type">
                    <header/>
                    <sheet>
                        <group>
                            <group col="4" colspan="4">
                                <field name="name"/>
                                <field name="code"/>
                            </group>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>

        <record id="view_op_exam_type_search" model="ir.ui.view">
            <field name="name">op.exam.type.search</field>
            <field name="model">op.exam.type</field>
            <field name="priority" eval="8"/>
            <field name="arch" type="xml">
                <search string="Exam Type">
                    <field name="name"/>
                    <field name="code"/>
                    <newline/>
                    <group>
                        <filter string="Name" name="group_by_exam_type_code"
                                domain="[]" context="{'group_by':'name'}"/>
                        <filter string="Code" name="group_by_exam_code"
                                domain="[]" context="{'group_by':'code'}"/>
                    </group>
                </search>
            </field>
        </record>

        <record model="ir.actions.act_window" id="act_open_op_exam_type_view">
            <field name="name">Exam Types</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">op.exam.type</field>
            <field name="path">exam-type</field>
            <field name="binding_view_types">form</field>
            <field name="view_mode">list,form</field>
            <field name="search_view_id" ref="view_op_exam_type_search"/>
            <field name="domain">[]</field>
            <field name="context">{}</field>
        </record>

        <record model="ir.actions.act_window.view" id="act_open_op_exam_type_view_form">
            <field name="act_window_id" ref="act_open_op_exam_type_view"/>
            <field name="sequence" eval="20"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_op_exam_type_form"/>
        </record>

        <record model="ir.actions.act_window.view" id="act_open_op_exam_type_view_tree">
            <field name="act_window_id" ref="act_open_op_exam_type_view"/>
            <field name="sequence" eval="10"/>
            <field name="view_mode">list</field>
            <field name="view_id" ref="view_op_exam_type_tree"/>
        </record>

</odoo>
