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

<!--  Cases by section and category2 of case Tree View -->

    <record model="ir.ui.view" id="view_crm_case_section_categ_tree">
        <field name="name">CRM Report - Teams and Type(Tree)</field>
        <field name="model">report.crm.case.section.categ2</field>
        <field name="arch" type="xml">
            <tree string="Cases by Team and Type">
                <field name="name"/>
                <field name="month"/>
                <field name="user_id"/>
                <field name="section_id"/>
                <field name="category2_id"/>
                <field name="stage_id"/>
                <field name="amount_revenue"/>
                <field name="nbr"/>
                <field name="delay_close"/>
                <field name="state"/>
            </tree>
        </field>
    </record>

<!--  Cases by section and category2 of case Form View -->

    <record model="ir.ui.view" id="view_crm_case_section_categ_form">
        <field name="name">CRM Report - Teams and Type(Form)</field>
        <field name="model">report.crm.case.section.categ2</field>
        <field name="arch" type="xml">
            <form string="Cases by Team and Category2">
                <field name="name"/>
                <field name="month"/>
                <field name="user_id"/>
                <field name="section_id"  widget="selection"/>
                <field name="category2_id" />
                <field name="stage_id"/>
                <field name="amount_revenue"/>
                <field name="nbr" />
                <field name="state" />
                <field name="delay_close"/>
            </form>
        </field>
    </record>

<!--  Cases by section and category2 of case Graph View -->

    <record model="ir.ui.view" id="view_crm_case_section_categ_graph">
        <field name="name">CRM Report - Teams and Type(Graph)</field>
        <field name="model">report.crm.case.section.categ2</field>
        <field name="arch" type="xml">
            <graph string="Cases by Teams and Type" type="bar" orientation="horizontal">
                <field name="category2_id"/>
                <field name="amount_revenue" operator="+"/>
                <field name="section_id" group="True"/>
            </graph>
        </field>
    </record>

<!--  Cases by section and category2 of case Search View -->

    <record id="view_crm_case_section_categ_filter" model="ir.ui.view">
            <field name="name">CRM Report - Teams and Type(Select)</field>
            <field name="model">report.crm.case.section.categ2</field>
            <field name="arch" type="xml">
                <search string="Cases by Team and Type">
                    <field name="name"/>
                    <field name="month"/>
                    <field name="nbr"/>
                    <field name="state"/>
                    <field name="section_id"/>
                    <field name="category2_id"/>
               </search>
            </field>
        </record>

<!--  Cases by section and category2 of case Action -->

    <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_tree">
        <field name="name">Cases By Section and Category</field>
        <field name="res_model">report.crm.case.section.categ2</field>
        <field name="view_type">form</field>
        <field name="view_mode">graph,tree</field>
        <field name="search_view_id" ref="view_crm_case_section_categ_filter"/>
    </record>

<!-- Cases by section and stage Tree View -->

    <record model="ir.ui.view" id="view_crm_case_section_stage_tree">
        <field name="name">CRM Report - Teams and Stage(Tree)</field>
        <field name="model">report.crm.case.section.stage</field>
        <field name="arch" type="xml">
            <tree string="Cases by Team and Stage">
                <field name="name"/>
                <field name="month"/>
                <field name="user_id"/>
                <field name="section_id"/>
                <field name="stage_id"/>
                <field name="amount_revenue"/>
                <field name="nbr"/>
                <field name="delay_close"/>
                <field name="state"/>
            </tree>
        </field>
    </record>

<!-- Cases by section and stage Form View -->

    <record model="ir.ui.view" id="view_crm_case_section_stage_form">
        <field name="name">CRM Report - Teams and Stage(Form)</field>
        <field name="model">report.crm.case.section.stage</field>
        <field name="arch" type="xml">
            <form string="Cases by Team and Stage">
                <field name="name"/>
                <field name="month"/>
                <field name="user_id"/>
                <field name="section_id"  widget="selection"/>
                <field name="stage_id"/>
                <field name="amount_revenue"/>
                <field name="nbr" />
                <field name="state" />
                <field name="delay_close"/>
            </form>
        </field>
    </record>

<!-- Cases by section and stage Graph View -->

    <record model="ir.ui.view" id="view_crm_case_section_stage_graph">
        <field name="name">CRM Report - Teams and Stage(Graph)</field>
        <field name="model">report.crm.case.section.stage</field>
        <field name="arch" type="xml">
            <graph string="Cases by Team and Stage" type="bar" orientation="horizontal">
                <field name="stage_id"/>
                <field name="amount_revenue" operator="+"/>
                <field name="section_id" group="True"/>
            </graph>
        </field>
    </record>

<!-- Cases by section and stage Search View -->

    <record id="view_crm_case_section_stage_filter" model="ir.ui.view">
            <field name="name">CRM Report - Teams and Stage(Select)</field>
            <field name="model">report.crm.case.section.stage</field>
            <field name="arch" type="xml">
                <search string="Cases by Team and Stage">
                    <field name="name"/>
                    <field name="month"/>
                    <field name="nbr"/>
                    <field name="state"/>
                    <field name="section_id"/>
               </search>
            </field>
        </record>

<!-- Cases by section and stage Action -->

    <record model="ir.actions.act_window" id="action_report_crm_case_section_stage_tree">
        <field name="name">Cases By Section and Stage</field>
        <field name="res_model">report.crm.case.section.stage</field>
        <field name="view_type">form</field>
        <field name="view_mode">graph,tree</field>
        <field name="search_view_id" ref="view_crm_case_section_stage_filter"/>
    </record>

<!-- Cases by section, category and stage Tree View -->

    <record model="ir.ui.view" id="view_crm_case_section_categ_stage_tree">
        <field name="name">CRM Report - Team, Category and Stage(Tree)</field>
        <field name="model">report.crm.case.section.categ.stage</field>
        <field name="arch" type="xml">
            <tree string="Cases by Team, Category and Stage">
                <field name="name"/>
                <field name="month"/>
                <field name="user_id"/>
                <field name="section_id"/>
                <field name="categ_id"/>
                <field name="stage_id"/>
                <field name="nbr"/>
                <field name="delay_close"/>
                <field name="state"/>
            </tree>
        </field>
    </record>

<!-- Cases by section, category and stage Form View -->

    <record model="ir.ui.view" id="view_crm_case_section_categ_stage_form">
        <field name="name">CRM Report - Team, Category and Stage(Form)</field>
        <field name="model">report.crm.case.section.categ.stage</field>
        <field name="arch" type="xml">
            <form string="Cases by Section, Category and Stage">
                <field name="name"/>
                <field name="month"/>
                <field name="user_id"/>
                <field name="section_id"  widget="selection"/>
                <field name="categ_id"/>
                <field name="stage_id"/>
                <field name="nbr" />
                <field name="state" />
                <field name="delay_close"/>
            </form>
        </field>
    </record>

<!-- Cases by section, category and stage Search View -->

    <record id="view_crm_case_section_categ_stage_filter" model="ir.ui.view">
            <field name="name">CRM Report - Section, Category and Stage(Select)</field>
            <field name="model">report.crm.case.section.categ.stage</field>
            <field name="arch" type="xml">
                <search string="Cases by Section, Category and Stage">
                    <field name="name"/>
                    <field name="month"/>
                    <field name="nbr"/>
                    <field name="state"/>
                    <field name="section_id"/>
               </search>
            </field>
        </record>

<!-- Cases by section, category and stage Graph View -->

    <record model="ir.ui.view" id="view_crm_case_section_categ_stage_graph">
        <field name="name">CRM Report - Section, Category and Stage(Select)</field>
        <field name="model">report.crm.case.section.categ.stage</field>
        <field name="arch" type="xml">
            <graph string="Cases by Section, Category and Stage" type="bar" orientation="horizontal">
                <field name="categ_id"/>
                <field name="nbr" operator="+"/>
                <field name="section_id" group="True"/>
            </graph>
        </field>
    </record>

<!-- Cases by section, category and stage Action -->

    <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_stage_tree">
        <field name="name">Cases By Section ,Category and Stage</field>
        <field name="res_model">report.crm.case.section.categ.stage</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,graph</field>
        <field name="search_view_id" ref="view_crm_case_section_categ_stage_filter"/>
    </record>

<!--  Cases by section, category and category2 Tree View -->

    <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_tree">
        <field name="name">CRM Report - Section, Category and Type(Tree)</field>
        <field name="model">report.crm.case.section.categ.categ2</field>
        <field name="arch" type="xml">
            <tree string="Cases by Section, Category and Type">
                <field name="name"/>
                <field name="month"/>
                <field name="user_id"/>
                <field name="section_id"/>
                <field name="categ_id"/>
                <field name="category2_id"/>
                <field name="stage_id"/>
                <field name="nbr"/>
                <field name="delay_close"/>
                <field name="state"/>
            </tree>
        </field>
    </record>

<!--  Cases by section, category and category2 Form View -->

    <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_form">
        <field name="name">CRM Report - Section, Category and Type(Form)</field>
        <field name="model">report.crm.case.section.categ.categ2</field>
        <field name="arch" type="xml">
            <form string="Cases by Section, Category and Type">
                <field name="name"/>
                <field name="month"/>
                <field name="user_id"/>
                <field name="section_id"  widget="selection"/>
                <field name="categ_id"/>
                <field name="category2_id"/>
                <field name="stage_id"/>
                <field name="nbr" />
                <field name="state" />
                <field name="delay_close"/>
            </form>
        </field>
    </record>

<!--  Cases by section, category and category2 Search View -->

    <record id="view_crm_case_section_categ_categ2_filter" model="ir.ui.view">
            <field name="name">CRM Report - Section, Category and Type(Select)</field>
            <field name="model">report.crm.case.section.categ.categ2</field>
            <field name="arch" type="xml">
                <search string="Search Cases by User">
                    <field name="name"/>
                    <field name="month"/>
                    <field name="nbr"/>
                    <field name="state"/>
                    <field name="section_id"/>
               </search>
            </field>
    </record>

<!--  Cases by section, category and category2 Graph View -->

    <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_graph">
        <field name="name">CRM Report - Section, Category and Type(Select)</field>
        <field name="model">report.crm.case.section.categ.categ2</field>
        <field name="arch" type="xml">
            <graph string="Cases by Section, Category and Type" type="bar" orientation="horizontal">
                <field name="category2_id"/>
                <field name="nbr" operator="+"/>
                <field name="section_id" group="True"/>
            </graph>
        </field>
    </record>

<!--  Cases by section, category and category2 Action -->

    <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_categ2_tree">
        <field name="name">Cases By Section ,Category and Category2</field>
        <field name="res_model">report.crm.case.section.categ.categ2</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,graph</field>
        <field name="search_view_id" ref="view_crm_case_section_categ_categ2_filter"/>
    </record>

</data>
</openerp>
