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

        <record id="res_partner_canal-view-tree" model="ir.ui.view">
            <field name="name">res.partner.canal.tree</field>
            <field name="model">res.partner.canal</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Channels">
                    <field name="name" select="1"/>
                    <field name="active" select="1"/>
                </tree>
            </field>
        </record>
        <record id="res_partner_canal-view" model="ir.ui.view">
            <field name="name">res.partner.canal.form</field>
            <field name="model">res.partner.canal</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Channel">
                    <field name="name" select="1"/>
                    <field name="active" select="1"/>
                </form>
            </field>
        </record>
        <record id="res_partner_canal-act" model="ir.actions.act_window">
            <field name="name">Channels</field>
            <field name="res_model">res.partner.canal</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
<!--        <menuitem id="menu_partner_events" name="Events" parent="menu_config_address_book" sequence="7"/>-->
        <menuitem id="base.menu_crm_config_lead" name="Leads &amp; Opportunities"
            parent="base.menu_base_config" sequence="2" groups="base.group_extended"/>
        <menuitem action="res_partner_canal-act" id="menu_res_partner_canal-act" parent="base.menu_crm_config_lead" sequence="4"/>

        <record id="res_partner_event-wopartner-view_form" model="ir.ui.view">
            <field name="name">res.partner.event.form</field>
            <field name="model">res.partner.event</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Event Logs">
                    <separator colspan="4" string="General Description"/>
                    <field name="name" select="1" string="Name"/>
                    <field name="date" select="1"/>
                    <field name="user_id" select="1"/>
                    <separator colspan="4" string="Description"/>
                    <field colspan="4" name="description" nolabel="1"/>
                </form>
            </field>
        </record>

        <record id="res_partner_event-wopartner-view_tree" model="ir.ui.view">
            <field name="name">res.partner.event.tree</field>
            <field name="model">res.partner.event</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Event Logs">
                    <field name="date"/>
                    <field name="name" string="Event"/>
                    <field name="user_id"/>
                </tree>
            </field>
        </record>
    </data>
</openerp>