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

        <!-- Top menu item -->
        <menuitem name="Sales"
            id="base.menu_base_partner"/>

        <menuitem id="base.menu_aftersale" name="After-Sale Services" sequence="2" parent="base.menu_base_partner" />

        <!-- Help Desk (menu) -->

        <record model="ir.actions.act_window" id="crm_case_helpdesk_act111">
            <field name="name">Helpdesk Requests</field>
            <field name="res_model">crm.helpdesk</field>
            <field name="view_mode">tree,calendar,form</field>
            <field name="view_id" ref="crm_case_tree_view_helpdesk"/>
            <field name="search_view_id" ref="view_crm_case_helpdesk_filter"/>
            <field name="context">{"search_default_user_id":uid}</field>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a new request. 
              </p><p>
                Helpdesk and Support allow you to track your interventions.
              </p><p>
                Use the Odoo Issues system to manage your support
                activities. Issues can be connected to the email gateway: new
                emails may create issues, each of them automatically gets the
                history of the conversation with the customer.
              </p>
            </field>
        </record>

        <record model="ir.actions.act_window.view" id="action_crm_sec_tree_view_act111">
            <field name="sequence" eval="1"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="crm_case_tree_view_helpdesk"/>
            <field name="act_window_id" ref="crm_case_helpdesk_act111"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_crm_sec_calendar_view_act111">
            <field name="sequence" eval="2"/>
            <field name="view_mode">calendar</field>
            <field name="view_id" ref="crm_case_helpdesk_calendar_view"/>
            <field name="act_window_id" ref="crm_case_helpdesk_act111"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_crm_sec_form_view_act111">
            <field name="sequence" eval="3"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_case_form_view_helpdesk"/>
            <field name="act_window_id" ref="crm_case_helpdesk_act111"/>
        </record>

        <menuitem name="Helpdesk and Support" id="menu_help_support_main"
            groups="base.group_sale_salesman"
            parent="base.menu_aftersale" action="crm_case_helpdesk_act111" sequence="2"/>

    </data>
</openerp>

