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

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

        <!-- 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,graph</field>
            <field name="view_id" ref="crm_case_claims_tree_view"/>
            <field name="context">{"search_default_section_id":section_id,"search_default_current":1,"search_default_user_id":uid}</field>
            <field name="search_view_id" ref="crm_claim.view_crm_case_claims_filter"/>
            <field name="help">Record and trace your customers' claims here. A claim is defined by a client name, several types, a status and a priority level. A  claim can also be a preventive or repairing action. A claim can be linked to a reference like a sales order, or a lot. You can send emails with attachments and get the history of the claim treatment (emails send, interventions type, etc.). </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>

        <record model="ir.actions.act_window.view" id="action_crm_sec_graph_view_act_job">
            <field name="sequence" eval="4"/>
            <field name="view_mode">graph</field>
            <field name="view_id" ref="crm_case_graph_view_stage_cost"/>
            <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"/>

    </data>
</openerp>
