<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <data>
        <record id="view_hms_roomstays_tree" model="ir.ui.view">
            <field name="name">Roomstays</field>
            <field name="model">hms.roomstays</field>
            <field name="arch" type="xml">
                <list>
                    <field name="bid"/>
                    <field name="bookingId"/>
                    <field name="roomId"/>
                    <field name="roomTypeId"/>
                    <field name="checkInDateTime"/>
                    <field name="checkOutDateTime"/>
                    <field name="status"/>
                    <field name="bookingStatus"/>
                </list>
            </field>
        </record>

        <record id="view_hms_roomstays_form" model="ir.ui.view">
            <field name="name">Roomstays</field>
            <field name="model">hms.roomstays</field>
            <field name="arch" type="xml">
                <form edit="0">
                    <header>

                    </header>
                    <sheet>
                        <group class="oe_title">
                            <h1><field name="bid"/></h1>
                        </group>
                        <group>
                            <field name="bookingId"/>
                            <field name="roomId"/>
                            <field name="roomTypeId"/>
                        </group>
                        <group>
                            <field name="checkInDateTime"/>
                            <field name="checkOutDateTime"/>
                            <field name="status"/>
                            <field name="bookingStatus"/>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>

        <record id="action_hms_roomstays_action" model="ir.actions.act_window">
            <field name="name">RoomStays</field>
            <field name="res_model">hms.roomstays</field>
            <field name="view_mode">list,form</field>
            <field name="help" type="html">
                <p class="o_view_nocontent_smiling_face">
                    Create your first room stay record.
                </p>
            </field>
        </record>

        <menuitem id="menu_hms_roomstays" name="Room Stays" parent="customers_and_partners_root_menu" groups="base.group_no_one" sequence="50" action="action_hms_roomstays_action"/>
    </data>
</odoo>
