xml

 avatar
user_3048252145
xml
4 years ago
6.0 kB
28
No Index
<?xml version="1.0"?>
<form string="Hotel Folio">
                <header>
                    <button name="action_confirm" states="draft" string="Confirm Sale" class="btn-primary" type="object"/>
                    <button name="action_checkout" string="Check-Out" states="sale" icon="fa-check" type="object" class="oe_highlight" attrs="{'invisible': ['|', ('enable_checkout', '=', True), ('state', '=', 'done')]}"/>
                    <button name="346" string="Create Invoice" type="action" class="btn-primary" attrs="{'invisible': ['|',('state', 'in', ('draft','cancel','done')), ('invoice_status', 'in', 'invoiced')]}"/>
                    <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="fa-check-square-o" class="oe_highlight"/>
                    <button name="action_cancel" string="Cancel Folio" states="sale" type="object" icon="fa-close" class="oe_highlight" groups="hotel.group_hotel_user"/>
                    <button name="action_cancel" string="Cancel Folio" states="draft" icon="fa-close" type="object" class="oe_highlight" groups="hotel.group_hotel_manager"/>
                    <button name="action_done" type="object" string="Set to Done" states="sale" class="oe_highlight" help="If a Hotel Folio is done, you cannot modify it manually anymore. However, you will still be able to invoice or deliver. This is used to freeze the Hotel Folio."/>
                    <field name="state" select="2" widget="statusbar" statusbar_visible="draft,sent,sale,done"/>
                </header>

                <sheet>
                    <div class="oe_button_box" name="button_box">
                        <button name="open_invoices" type="object" icon="fa-pencil-square-o">
                            <field name="invoice_count" string="Fatura" widget="statinfo"/>
                        </button>
                    </div>

                    <label for="name" string="Folio Number"/>
                    <h1>
                        <field name="name" colspan="4"/>
                    </h1>
                    <group colspan="4" col="4">
                        <field name="date_order" readonly="1"/>
                        <field name="warehouse_id" string="Branch"/>
                        <field name="invoice_status"/>
                        <field name="hotel_invoice_id" states="sale,done,cancel" readonly="1"/>
                        <field name="invoice_is_paid"/>
<!--                        <field name="shenime" />-->
                        <field name="enable_checkout" invisible="1"/>
                    </group>
                    <notebook>
                        <page name="folio" string="Check In">
                            <group colspan="4" col="4">
                                <field name="partner_id" string="Guest Name" required="1"/>
                                <field name="partner_invoice_id" domain="[('parent_id','=',partner_id)]"/>
                                <field name="pricelist_id"/>
                                <field name="partner_shipping_id" domain="[('parent_id','=',partner_id)]"/>
                            </group>
                            <newline/>
                            <group colspan="4" col="4" invisible="1">
                                <field name="checkin_date"/>
                                <field name="checkout_date"/>
                                <field name="duration" readonly="1"/>
                                <field name="duration_dummy" invisible="1"/>
                            </group>
                            <separator string="Room Lines" colspan="4"/>
                            <field name="room_lines" colspan="4" string="Room Line" nolabel="1" context="{'checkin':checkin_date,'checkout':checkout_date,'folio':context.get('folio')}">
                                <form string="Room Line">
                                    <notebook>
                                        <page name="folio_name" string="Folio Line">
                                            <group col="6" colspan="4">
                                                <field name="checkin_date"/>
                                                <field name="checkout_date"/>
                                                <separator string="Automatic Declaration" col="6" colspan="4"/>
                                                <field name="product_uom_qty" context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'uom':product_uom}" invisible="1"/>
                                                <field name="product_id" context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'uom':product_uom}" domain="[('isroom','=',True)]" string="Room No"/>
                                                <field name="product_uom" string="Rent(UOM)"/>
                                            </group>
                                            <separator string="Manual Description" colspan="4"/>
                                            <field name="name" colspan="4" select="2" placeholder="Description"/>
                                            <group col="4" colspan="2">
                                                <field name="price_unit" select="2" string="Rent" readonly="1" force_save="1"/>
                                                <!--<field name="discount"/>-->
                                                <newline/>
                                                <field name="tax_id" colspan="4" nolabel="1"/>
                                                <separator string="States" colspan="4"/>
                                                <field name="state" select="2"/>
                                                <field name="invoice_status"/>
                                            </group>
                                        </page>
Editor is loading...