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

    <record id="channel_product_pricelist_view_form" model="ir.ui.view">
        <field name="name">channel.product.pricelist.form</field>
        <field name="model">channel.product.pricelist</field>
        <field name="arch" type="xml">
            <form string="Hotel Channel Product Pricelist">
                <group>
                    <field name="id" invisible="1" />
                    <field name="backend_id"  attrs="{'visible': [('id','=', False)]}" />
                    <field name="odoo_id" invisible="1" />
                </group>
                <group>
                    <field name="external_id" />
                    <field name="pricelist_type" />
                </group>
            </form>
        </field>
    </record>

    <record id="channel_product_pricelist_view_tree" model="ir.ui.view">
        <field name="name">channel.hotel.product.pricelist.tree</field>
        <field name="model">channel.product.pricelist</field>
        <field name="arch" type="xml">
            <tree string="Hotel Channel Product Pricelist">
                <field name="backend_id"/>
            </tree>
        </field>
    </record>

    <record id="channel_product_pricelist_action" model="ir.actions.act_window">
        <field name="name">Hotel Channel Connector Bindings</field>
        <field name="res_model">channel.product.pricelist</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="view_type">form</field>
        <field name="domain">[]</field>
    </record>

</odoo>
