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

    <record id="channel_hotel_room_type_restriction_item_view_form" model="ir.ui.view">
        <field name="name">channel.hotel.room.type.restriction.item.form</field>
        <field name="model">channel.hotel.room.type.restriction.item</field>
        <field name="arch" type="xml">
            <form string="Hotel Channel Room Restriction Item">
                <group>
                    <field name="id" invisible="1" />
                    <field name="backend_id"  attrs="{'visible': [('id','=', False)]}" />
                </group>
                <group>
                    <field name="channel_pushed" />
                </group>
            </form>
        </field>
    </record>

    <record id="channel_hotel_room_type_restriction_item_view_tree" model="ir.ui.view">
        <field name="name">channel.hotel.room.type.restriction.item.tree</field>
        <field name="model">channel.hotel.room.type.restriction.item</field>
        <field name="arch" type="xml">
            <tree string="Hotel Channel Room Restriction Item">
                <field name="backend_id"/>
            </tree>
        </field>
    </record>

</odoo>
