<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record model="ir.ui.view" id="pms_sale_channel_view_form">
        <field name="name">pms.sale.channel.form</field>
        <field name="model">pms.sale.channel</field>
        <field name="arch" type="xml">
            <form string="Sale Channel">
                <sheet>
                    <group>
                        <field name="icon" widget="image" />
                        <field name="name" colspan="1" />
                        <field name="channel_type" />
                        <field name="is_on_line" />
                        <field name="product_pricelist_ids" widget="many2many_tags" />
                        <field name="pms_property_ids" widget="many2many_tags" />
                    </group>
                </sheet>
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="pms_sale_channel_view_tree">
        <field name="name">pms.sale.channel.tree</field>
        <field name="model">pms.sale.channel</field>
        <field name="arch" type="xml">
            <tree name=" Sale Channel">
                <field name="name" />
                <field name="channel_type" />
                <field name="is_on_line" />
                <field name="product_pricelist_ids" widget="many2many_tags" />
                <field name="pms_property_ids" />
            </tree>
        </field>
    </record>
    <record model="ir.actions.act_window" id="open_pms_sale_channel_form_tree">
        <field name="name">Sale Channel</field>
        <field name="res_model">pms.sale.channel</field>
        <field name="view_mode">tree,form</field>
    </record>
    <menuitem
        name="Sale Channels"
        id="menu_open_pms_sale_channel_form_tree"
        action="open_pms_sale_channel_form_tree"
        sequence="55"
        parent="pms.revenue_management_menu"
    />
</odoo>
