<?xml version="1.0"?>
<openerp>
<data noupdate="1">
    <menuitem id="menu_aftersale" name="After-Sale Services" parent="crm.menu_crm"/>
    
    ######################## CLAIMS (menu) ###########################
    <record model="ir.actions.act_window" id="crm_case_categ_claim0">
        <field name="name">All Claims</field>
        <field name="res_model">crm.case</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,calendar</field>
        <field name="view_id" ref="crm_case_claims_tree_view"/>
        <field name="domain" eval="'[(\'section_id\',\'=\','+str(ref('section_support_claims'))+')]'"/>
    </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="menu_aftersale" action="crm_case_categ_claim0"/>
    
    <!-- My Claims -->
    <record model="ir.actions.act_window" id="crm_case_category_act_claim_my1">
        <field name="name">My Claims</field>
        <field name="res_model">crm.case</field>
        <field name="view_mode">tree,form,calendar</field>
        <field name="view_id" ref="crm_case_claims_tree_view"/>
        <field name="domain" eval="'[(\'section_id\',\'=\','+str(ref('section_support_claims'))+'),(\'user_id\',\'=\',uid)]'"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_tree_view_claim_my1">
        <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_category_act_claim_my1"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_graph_view_claim_my1">
        <field name="sequence" eval="3"/>
        <field name="view_mode">calendar</field>
        <field name="view_id" ref="crm_case_claims_calendar_view"/>
        <field name="act_window_id" ref="crm_case_category_act_claim_my1"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_form_view_claim_my1">
        <field name="sequence" eval="2"/>
        <field name="view_mode">form</field>
        <field name="view_id" ref="crm_case_claims_form_view"/>
        <field name="act_window_id" ref="crm_case_category_act_claim_my1"/>
    </record>
    <menuitem name="My Claims" id="menu_crm_case_category_act_claim_my1" action="crm_case_category_act_claim_my1"  parent="menu_crm_case_claims"/>

    <record model="ir.actions.act_window" id="crm_case_category_act_claim1">
        <field name="name">Claims</field>
        <field name="res_model">crm.case</field>
        <field name="view_mode">form</field>
        <field name="view_id" ref="crm_case_claims_form_view"/>
        <field name="domain" eval="'[(\'section_id\',\'=\','+str(ref('section_support_claims'))+')]'"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_form_view_claim1">
        <field name="sequence" eval="1"/>
        <field name="view_mode">form</field>
        <field name="view_id" ref="crm_case_claims_form_view"/>
        <field name="act_window_id" ref="crm_case_category_act_claim1"/>
    </record>
    <menuitem name="New Claim" id="menu_crm_case_categ0_act_claim" action="crm_case_category_act_claim1" parent="menu_crm_case_claims"/>

    <record model="ir.actions.act_window" id="crm_case_category_act_claim_my2">
        <field name="name">My Unclosed Claims</field>
        <field name="res_model">crm.case</field>
        <field name="view_mode">tree,calendar,form</field>
        <field name="view_id" ref="crm_case_claims_tree_view"/>
        <field name="domain" eval="'[(\'section_id\',\'=\','+str(ref('section_support_claims'))+'),(\'user_id\',\'=\',uid),(\'state\',\'&lt;&gt;\',\'done\'),(\'state\',\'&lt;&gt;\',\'cancel\')]'"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_tree_view_claim_my2">
        <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_category_act_claim_my2"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_calendar_view_claim_my2">
        <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_category_act_claim_my2"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_form_view_claim_my2">
        <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_category_act_claim_my2"/>
    </record>
    <menuitem name="My Unclosed Claims" id="menu_crm_case_categ0_act_claim_my2" action="crm_case_category_act_claim_my2" parent="menu_crm_case_category_act_claim_my1"/>

    <record model="ir.actions.act_window" id="crm_case_category_act_claim_my2_open">
        <field name="name">My Open Claims</field>
        <field name="res_model">crm.case</field>
        <field name="view_mode">tree,calendar,form</field>
        <field name="domain" eval="'[(\'section_id\',\'=\','+str(ref('section_support_claims'))+'),(\'user_id\',\'=\',uid),(\'state\',\'=\',\'open\')]'"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_tree_view_claim_my2_open">
        <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_category_act_claim_my2_open"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_calendar_view_claim_my2_open">
        <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_category_act_claim_my2_open"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_form_view_claim_my2_open">
        <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_category_act_claim_my2_open"/>
    </record>
    <menuitem name="My Open Claims" id="menu_crm_case_categ0_act_claim_my2_open" action="crm_case_category_act_claim_my2" parent="menu_crm_case_categ0_act_claim_my2"/>

    <!-- All Claims -->
    <menuitem  name="All Claims" id="menu_crm_case_categ_claim0" action="crm_case_categ_claim0" parent="menu_crm_case_claims"/>

    <record model="ir.actions.act_window" id="crm_case_category_act_claim_all2">
        <field name="name">All Unclosed Claims</field>
        <field name="res_model">crm.case</field>
        <field name="view_mode">tree,calendar,form</field>
        <field name="view_id" ref="crm_case_claims_tree_view"/>
        <field name="domain" eval="'[(\'section_id\',\'=\','+str(ref('section_support_claims'))+'),(\'state\',\'&lt;&gt;\',\'done\'),(\'state\',\'&lt;&gt;\',\'cancel\')]'"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_tree_view_claim_all2">
        <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_category_act_claim_all2"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_calendar_view_claim_all2">
        <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_category_act_claim_all2"/>
    </record>
    <record model="ir.actions.act_window.view" id="action_crm_tag_form_view_claim_all2">
        <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_category_act_claim_all2"/>
    </record>
    <menuitem name="All Unclosed Claims" id="menu_crm_case_categ0_act_claim_all2" action="crm_case_category_act_claim_all2" parent="menu_crm_case_categ_claim0"/>

</data>
</openerp>
