<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <!-- Form view -->
    <record model="ir.ui.view" id="hotel_channel_connector_ota_info_view_form">
        <field name="name">channel.ota.info.form</field>
        <field name="model">channel.ota.info</field>
        <field name="arch" type="xml">
            <form string="Channel OTA's Info" >
                <sheet>
                    <group>
                        <field name="id" invisible="1" />
                        <field name="backend_id"  attrs="{'visible': [('id','=', False)]}" />
                    </group>
                    <group>
                        <field name="ota_id" />
                        <field name="name" />
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <!-- Tree view -->
    <record model="ir.ui.view" id="hotel_channel_connector_ota_info_view_tree">
        <field name="name">channel.ota.info.tree</field>
        <field name="model">channel.ota.info</field>
        <field name="arch" type="xml">
            <tree string="Channel OTA's Info">
                <field name="ota_id" />
                <field name="name" />
            </tree>
        </field>
    </record>

</odoo>
