<?xml version="1.0"?>
<odoo>

    <record id="hotel_folio_view_form" model="ir.ui.view">
        <field name="model">hotel.folio</field>
        <field name="inherit_id" ref="hotel.hotel_folio_view_form" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='partner_internal_comment']" position="before">
                <field name="has_channel_reservations" invisible="True" />
                <field name="customer_notes" readonly="True" attrs="{'invisible':[('has_channel_reservations', '=', False)]}"/>
            </xpath>
            <!--xpath expr="//notebook/page/field[@name='room_lines']/tree/field[@name='checkout']" position="after">
                <field name="is_from_ota" invisible="1"/>
            </xpath>
            <xpath expr="//notebook/page/field[@name='room_lines']/tree/field[@name='checkout']" position="attributes">
                <attribute name="attrs">{'readonly': [('is_from_ota', '!=', False)]}</attribute>
            </xpath>
            <xpath expr="//notebook/page/field[@name='room_lines']/tree/field[@name='checkin']" position="attributes">
                <attribute name="attrs">{'readonly': [('is_from_ota', '!=', False)]}</attribute>
            </xpath>
            <xpath expr="//notebook/page/field[@name='room_lines']/form/sheet/header/field[@name='folio_id']" position="after">
                <field name="is_from_ota" invisible="1"/>
            </xpath>
            <xpath expr="//notebook/page/field[@name='room_lines']/form/sheet/h3/field[@name='checkout']" position="attributes">
                <attribute name="attrs">{'readonly': [('is_from_ota', '!=', False)]}</attribute>
            </xpath>
            <xpath expr="//notebook/page/field[@name='room_lines']/form/sheet/h3/field[@name='checkin']" position="attributes">
                <attribute name="attrs">{'readonly': [('is_from_ota', '!=', False)]}</attribute>
            </xpath-->
        </field>
    </record>

</odoo>
