<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <data>
        <record id="view_hms_reservations_list" model="ir.ui.view">
            <field name="name">Reservations</field>
            <field name="model">hms.reservations</field>
            <field name="arch" type="xml">
                <list>
                    <field name="bid"/>
                </list>
            </field>
        </record>

        <record id="view_hms_reservations_form" model="ir.ui.view">
            <field name="name">Reservations</field>
            <field name="model">hms.reservations</field>
            <field name="arch" type="xml">
                <form string="Hms Reservations">
                    <header>

                    </header>
                    <sheet>
                        <group>
                            <group>
                                <field name="bid"/>
                                <field name="customerIndex"/>
                                <field name="agentIndex"/>
                                <field name="currency"/>
                                <field name="currencyRate"/>
                                <field name="bookingNumber"/>
                                <field name="roomNumber"/>
                                <field name="guestId"/>
                                <field name="guestName"/>
                                <field name="guestCount"/>
                            </group>
                            <group>
                                <field name="checkInDateTime_date"/>
                                <field name="checkOutDateTime_date"/>
                                <field name="permitNumber"/>
                                <field name="isDeparted"/>
                                <field name="isArrived"/>
                                <field name="paymentMethod"/>
                                <field name="roomTypeId"/>
                                <field name="customerCompany"/>
                                <field name="payerCompany"/>
                            </group>
                        </group>
                        <group>
                            <group>
                                <field name="total"/>
                                <field name="tax"/>
                                <field name="paid"/>
                                <field name="balance"/>
                                <field name="creationDateTime_date"/>
                            </group>
                            <group>
                                <field name="folioNumber"/>
                                <field name="marketCode" widget="json"/>
                                <field name="bookingSource"/>
                            </group>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>

        <record id="action_hms_reservations_action" model="ir.actions.act_window">
            <field name="name">Reservations</field>
            <field name="res_model">hms.reservations</field>
            <field name="view_mode">list,form</field>
            <field name="help" type="html">
                <p class="o_view_nocontent_smiling_face">
                    Create your first reservation record.
                </p>
            </field>
        </record>

        <menuitem id="menu_hms_reservations" name="Reservations" parent="property_management_root_menu" sequence="60" action="action_hms_reservations_action"/>
    </data>
</odoo>
