hms_bak/bross_hms/views/bookings.xml
mgite f96edea81f
All checks were successful
Update odoo 18 / update (push) Successful in 1m25s
Add auditlog module
2024-11-15 03:32:15 +04:00

124 lines
7.6 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>
<field name="bid"/>
<field name="number"/>
<field name="customerLanguage"/>
<field name="lastModified"/>
<field name="currencyId"/>
<field name="sourceChannelName"/>
<button name="add_bank_deposits" type="object" string="Add bank deposits" class="btn btn-primary"/>
</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="0">
<header>
<button name="add_bank_deposits" type="object" string="Add bank deposits" class="btn btn-primary"/>
</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"/>
</group>
</group>
<group>
<field name="roomStays" widget="many2many_tags"/>
</group>
<group>
<notebook>
<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>