<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record model="ir.ui.view" id="pms_room_type_class_view_form">
        <field name="name">pms.room.type.class.form</field>
        <field name="model">pms.room.type.class</field>
        <field name="arch" type="xml">
            <form string="Room Class">
                <sheet>
                    <div class="oe_button_box" name="button_box">
                        <button
                            name="toggle_active"
                            type="object"
                            class="oe_stat_button"
                            icon="fa-archive"
                        >
                            <field
                                name="active"
                                widget="boolean_button"
                                options='{"terminology": "archive"}'
                            />
                        </button>
                    </div>
                    <group colspan="4">
                        <group>
                            <field
                                name="pms_property_ids"
                                widget="many2many_tags"
                                options="{'no_create': True,'no_open': True}"
                            />
                            <field name="name" />
                            <field name="default_code" />
                            <field name="overnight" />
                        </group>
                    </group>
                    <group colspan="2">
                        <group>
                            <field name="room_type_ids" widget="many2many" />
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="pms_room_type_class_view_tree">
        <field name="name">pms.room.type.class.tree</field>
        <field name="model">pms.room.type.class</field>
        <field name="arch" type="xml">
            <tree name="Room Class">
                <field name="sequence" widget="handle" />
                <field name="name" />
                <field name="default_code" />
                <field name="room_type_ids" />
            </tree>
        </field>
    </record>
    <record model="ir.actions.act_window" id="open_pms_room_type_class_form_tree">
        <field name="name">Room Type Class</field>
        <field name="res_model">pms.room.type.class</field>
        <field name="view_mode">tree,form</field>
    </record>
    <menuitem
        name="Room Type Class"
        id="menu_open_pms_room_type_class_form_tree"
        action="open_pms_room_type_class_form_tree"
        sequence="25"
        parent="pms.pms_rooms_menu"
    />
</odoo>
