143 lines
9.2 KiB
XML
143 lines
9.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="view_hms_bookings_tree" model="ir.ui.view">
|
|
<field name="name">Reception</field>
|
|
<field name="model">hms.bookings</field>
|
|
<field name="arch" type="xml">
|
|
<list>
|
|
<button name="add_bank_transactions" type="object" string="Add bank transactions" class="btn btn-primary"/>
|
|
<field name="bid"/>
|
|
<field name="number"/>
|
|
<field name="customerLanguage"/>
|
|
<field name="lastModified"/>
|
|
<field name="currencyId"/>
|
|
<field name="sourceChannelName"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_hms_bookings_form" model="ir.ui.view">
|
|
<field name="name">Reception</field>
|
|
<field name="model">hms.bookings</field>
|
|
<field name="arch" type="xml">
|
|
<form edit="1">
|
|
<header>
|
|
<button name="add_bank_transactions" type="object" string="Add bank transactions" class="btn btn-primary"/>
|
|
<field name="payment_status" widget="statusbar"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1><field name="bid"/></h1>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="number"/>
|
|
<field name="customerLanguage"/>
|
|
<field name="visitPurpose"/>
|
|
<!-- <button name="json_data_store_visit" type="object" class="btn btn-primary" string="Visit Purpose"/> -->
|
|
<field name="customerComment"/>
|
|
<field name="lastModified"/>
|
|
<field name="groupName"/>
|
|
<field name="currencyId"/>
|
|
<field name="customer"/>
|
|
<field name="customerCompany"/>
|
|
<field name="source"/>
|
|
<field name="sourceChannelName"/>
|
|
</group>
|
|
<group>
|
|
<field name="checkin_date"/>
|
|
<field name="checkout_date"/>
|
|
<field name="booking_date"/>
|
|
<field name="night"/>
|
|
<field name="roomstays_count"/>
|
|
<field name="total_amount"/>
|
|
<field name="to_be_paid"/>
|
|
<field name="currency" invisible="1"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<field name="roomStays" widget="many2many_tags"/>
|
|
</group>
|
|
<group>
|
|
<notebook>
|
|
<page name="payments" string="Payments">
|
|
<separator string="Payments"/>
|
|
<field name="payment_ids">
|
|
<list editable="bottom" create="1" delete="1" edit="1">
|
|
<button name="open_payment_record" type="object" string="Open Payment" class="btn btn-primary"/>
|
|
<field name="hms_payment_type_id" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="amount"/>
|
|
<field name="currency_id" optional="hide" readonly="1" force_save="1"/>
|
|
<field name="exchange_rate" optional="show" readonly="1" force_save="1"/>
|
|
<field name="create_date" optional="show"/>
|
|
<field name="create_uid" optional="show"/>
|
|
<field name="write_date" optional="show"/>
|
|
<field name="write_uid" optional="show"/>
|
|
<field name="notes"/>
|
|
</list>
|
|
</field>
|
|
</page>
|
|
<page name="room_stays" string="Room Stays">
|
|
<separator string="Room Stays"/>
|
|
<field name="roomStays">
|
|
<list>
|
|
<field name="roomId" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="roomTypeId" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="guestsIds" optional="hide" widget="many2many_tags" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="checkInDateTime"/>
|
|
<field name="checkOutDateTime"/>
|
|
<field name="actualCheckInDateTime"/>
|
|
<field name="actualCheckOutDateTime"/>
|
|
<field name="status" optional="hide" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="bookingStatus" optional="hide" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="totalPrice" optional="hide"/>
|
|
</list>
|
|
</field>
|
|
</page>
|
|
<page name="reservations" string="Reservations">
|
|
<separator string="Reservations"/>
|
|
<field name="reservation_ids">
|
|
<list>
|
|
<field name="bid"/>
|
|
<field name="customerIndex" optional="hide" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="agentIndex" optional="hide" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="roomNumber" optional="hide" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="roomTypeId" optional="hide" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="guestId" optional="hide" widget="many2many_tags" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
<field name="checkInDateTime" optional="hide"/>
|
|
<field name="checkOutDateTime" optional="hide"/>
|
|
<field name="checkInDateTime_date"/>
|
|
<field name="checkOutDateTime_date"/>
|
|
<field name="creationDateTime_date"/>
|
|
<field name="paymentMethod" optional="hide"/>
|
|
<field name="paid" optional="hide"/>
|
|
<field name="tax" optional="hide"/>
|
|
<field name="total" optional="show"/>
|
|
<field name="balance" optional="hide"/>
|
|
<field name="currency" optional="hide"/>
|
|
</list>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_hms_bookings_action" model="ir.actions.act_window">
|
|
<field name="name">Reception</field>
|
|
<field name="res_model">hms.bookings</field>
|
|
<field name="view_mode">list,form</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Create your first booking record.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem name="Reception" parent="hms_root_menu" id="reception_root_menu" sequence="10" action="action_hms_bookings_action"/>
|
|
</data>
|
|
</odoo>
|