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

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

        <!-- Claims Menu -->
        <record model="ir.actions.act_window" id="crm_case_categ_claim0">
            <field name="name">Claims</field>
            <field name="res_model">crm.claim</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,calendar,form</field>
            <field name="view_id" ref="crm_case_claims_tree_view"/>
            <field name="context">{"search_default_user_id":uid, "stage_type":'claim'}</field>
            <field name="search_view_id" ref="crm_claim.view_crm_case_claims_filter"/>
            <field name="help" type="html">
            <p class="oe_view_nocontent_create">
                Record and track your customers' claims. Claims may be linked to a sales order or a lot.You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on).Claims may automatically be linked to an email address using the mail gateway module.
            </p>
            </field>
        </record>

        <record model="ir.actions.act_window.view" id="action_crm_tag_tree_claim0">
            <field name="sequence" eval="1"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="crm_case_claims_tree_view"/>
            <field name="act_window_id" ref="crm_case_categ_claim0"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_crm_tag_calendar_claim0">
            <field name="sequence" eval="2"/>
            <field name="view_mode">calendar</field>
            <field name="view_id" ref="crm_case_claims_calendar_view"/>
            <field name="act_window_id" ref="crm_case_categ_claim0"/>
        </record>

        <record model="ir.actions.act_window.view" id="action_crm_tag_form_claim0">
            <field name="sequence" eval="3"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_case_claims_form_view"/>
            <field name="act_window_id" ref="crm_case_categ_claim0"/>
        </record>


        <menuitem name="Claims" id="menu_crm_case_claims"
            parent="base.menu_aftersale" action="crm_case_categ_claim0" sequence="1"/>

        <!-- Claim Stages -->
        <menuitem id="menu_claim_stage_view" name="Stages" action="crm_claim_stage_act" parent="menu_config_claim" sequence="20"/>

    </data>
</openerp>
