<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!--Hotel Bed View-->
    <record id="hotel_book_order_tree" model="ir.ui.view">
        <field name="name">hotel.book.order.tree</field>
        <field name="model">hotel.book.order</field>
        <field name="arch" type="xml">
            <tree string="Book Order">
                <field name="guest_ref"/>
                <field name="first_name"/>
                <button  string="Check Out" type="object"/>
                <button  string="Transfer" type="object"/>
            </tree>
        </field>
    </record>

        <!-- Hotel Bed Form-->
    <record id="hotel_book_order_form" model="ir.ui.view">
        <field name="name">hotel.book.order.form</field>
        <field name="model">hotel.book.order</field>
        <field name="arch" type="xml">
            <form string="Book Order" version="7.0">
                <head>
                    <button  string="Check Out" type="object"/>
                    <button  string="Transfer" type="object"/>
                </head>
                <sheet>
                    <group col="4">
                        <field name="guest_ref"/>
                        <field name="first_name"/>
                        <field name="last_name"/>
                        <field name="gender"/>
                    </group>
                    <group col="4">
                        <field name="guest_type"/>
                        <field name="country_id"/>
                        <field name="room_id"/>
                        <field name="check_in_date"/>
                        <field name="check_out_date"/>
                        <field name="state"/>
                        <field name="user_id"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

        <!--Hotel BedSearch Creation-->
    <record id="hotel_book_order_search" model="ir.ui.view">
        <field name="name">hotel.bed.form.search</field>
        <field name="model">hotel.book.order</field>
        <field name="arch" type="xml">
            <search string="Book Order">
                <field name="guest_ref"/>
            </search>
         </field>
     </record>


    <!-- Hotel Bed Action-->
    <record id="hotel_book_order_action" model="ir.actions.act_window">
        <field name="name">Beds</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">hotel.book.order</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="search_view_id"  eval="False"/>
        <field name="context">{}</field>
        <field name="help">Create new beds for the hotel.</field>
    </record>


    <!--Hotel Bed Menu Creation--><commit_msg>Hotel Book Order<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!--Hotel Bed View-->
    <record id="hotel_book_order_tree" model="ir.ui.view">
        <field name="name">hotel.book.order.tree</field>
        <field name="model">hotel.book.order</field>
        <field name="arch" type="xml">
            <tree string="Book Order" colors="grey:state=='cout';blue:state=='cin'">
                <field name="guest_ref"/>
                <field name="first_name"/>
                <field name="state"/>
                <button  string="[Check Out]" type="object"  attrs="{'invisible': [('state','not in',('cin'))]}" icon="gtk-go-forward"  class="oe_highlight"/>
                <button  string="[Transfer]" type="object"  attrs="{'invisible': [('state','not in',('cin'))]}" icon="terp-crm"/>
            </tree>
        </field>
    </record>

        <!-- Hotel Bed Form-->
    <record id="hotel_book_order_form" model="ir.ui.view">
        <field name="name">hotel.book.order.form</field>
        <field name="model">hotel.book.order</field>
        <field name="arch" type="xml">
            <form string="Book Order" version="7.0">
                <head>
                    <button  string="Check Out" type="object"/>
                    <button  string="Transfer" type="object"/>
                    <field name="state" widget="statusbar" statusbar_visible="cin,cout" statusbar_colors='{"cin":"green","cout":"red"}'/>
                </head>
                <sheet>
                    <group col="4">
                        <field name="guest_ref"/>
                        <field name="first_name"/>
                        <field name="last_name"/>
                        <field name="gender"/>
                    </group>
                    <group col="4">
                        <field name="guest_type"/>
                        <field name="country_id"/>
                        <field name="room_id"/>
                        <field name="check_in_date"/>
                        <field name="check_out_date"/>
                        <field name="state"/>
                        <field name="user_id"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

        <!--Hotel BedSearch Creation-->
    <record id="hotel_book_order_search" model="ir.ui.view">
        <field name="name">hotel.bed.form.search</field>
        <field name="model">hotel.book.order</field>
        <field name="arch" type="xml">
            <search string="Book Order">
                <field name="guest_ref"/>
            </search>
         </field>
     </record>


    <!-- Hotel Bed Action-->
    <record id="hotel_book_order_action" model="ir.actions.act_window">
        <field name="name">New Booking Order</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">hotel.book.order</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="search_view_id"  eval="False"/>
        <field name="context">{}</field>
        <field name="help">Create new beds for the hotel.</field>
    </record>


    <!--Hotel Bed Menu Creation-->
{'fraction_non_alphanumeric': 0.16661151555261416, 'fraction_numerical': 0.002316346790205162, 'mean_word_length': 1.6986607142857142, 'pattern_counts': {'":': 2, '<': 167, '<?xml version=': 2, '>': 167, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2142576', 'n_tokens_mistral': 1735, 'n_tokens_neox': 1656, 'n_words': 316}