<?xml version="1.0"?>
<openerp>
<data>

    <record model="ir.actions.act_window" id="crm_case_category_act_leads_all">
        <field name="name">Leads</field>
        <field name="res_model">crm.lead</field>
        <field name="view_mode">tree,form</field>
        <field name="domain">['|', ('type','=','lead'), ('type','=',False)]</field>
        <field name="view_id" ref="crm_case_tree_view_leads"/>
        <field name="context">{"search_default_user_id":uid,'search_default_current':1}</field>
        <field name="search_view_id" ref="crm.view_crm_case_leads_filter"/>
        <field name="context">{'search_default_current':1, 'default_type': 'lead'}</field>
        <field name="help">A lead is a first, unqualified, contact with a new prospect. Use leads when you import a database of prospects or integrate your website's contact form with OpenERP. After having been qualified, the lead can be converted to a partner and a business opportunity for a further detailed tracking of the related activities.</field>
    </record>

    <record model="ir.actions.act_window.view" id="action_crm_tag_tree_view_leads_all">
        <field name="sequence" eval="1"/>
        <field name="view_mode">tree</field>
        <field name="view_id" ref="crm_case_tree_view_leads"/>
        <field name="act_window_id" ref="crm_case_category_act_leads_all"/>
    </record>

    <record model="ir.actions.act_window.view" id="action_crm_tag_form_view_leads_all">
        <field name="sequence" eval="3"/>
        <field name="view_mode">form</field>
        <field name="view_id" ref="crm_case_form_view_leads"/>
        <field name="act_window_id" ref="crm_case_category_act_leads_all"/>
    </record>

    <menuitem id="base.menu_sales" name="Sales"
        parent="base.menu_base_partner" sequence="1" />

    <menuitem parent="base.menu_sales" name="Leads"
        groups="base.group_extended"
        id="menu_crm_case_categ0_act_leads"
        action="crm_case_category_act_leads_all" sequence="1" />

</data>
</openerp>
