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

        <!--
	Cases by user and section
	-->

        <record id="view_crm_case_user_tree" model="ir.ui.view">
            <field name="name">report.crm.case.user.tree</field>
            <field name="model">report.crm.case.user</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Cases by User and Section">
                    <field name="name" />
                    <field name="month"/>
                    <field name="user_id"/>
                    <field name="section_id"/>
                    <field name="nbr"/>
                    <field name="delay_close"/>
                    <field name="amount_revenue"/>
                    <field name="amount_costs"/>
                    <field name="amount_revenue_prob"/>
                    <field name="probability"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>
        <record id="view_crm_case_user_form" model="ir.ui.view">
            <field name="name">report.crm.case.user.form</field>
            <field name="model">report.crm.case.user</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Cases by User and Section">
                    <field name="name" select="1"/>
                    <field name="month" select="1"/>
                    <field name="user_id" select="1"/>
                    <field name="section_id" select="1" widget="selection"/>
                    <field name="nbr" select="1"/>
                    <field name="state" select="1"/>
                </form>
            </field>
        </record>

        <record id="view_crm_case_user_graph" model="ir.ui.view">
            <field name="name">report.crm.case.user.graph</field>
            <field name="model">report.crm.case.user</field>
            <field name="type">graph</field>
            <field name="arch" type="xml">
                <graph orientation="horizontal" string="Cases by User and Section" type="bar">
                    <field name="state"/>
                    <field name="nbr" operator="+"/>
                    <field group="True" name="user_id"/>
                </graph>
            </field>
        </record>

        <record id="view_crm_case_user_filter" model="ir.ui.view">
            <field name="name">report.crm.case.user.select</field>
            <field name="model">report.crm.case.user</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Cases by User">
                   <group col="12" colspan="4">
                   		<filter string="This Year" icon="terp-hr" domain="[('name','=',time.localtime()[0])]"/>
						<filter string="This Month" icon="terp-hr" domain="[('month','=',time.localtime()[1])]"/>
						<separator orientation="vertical"/>
						<field name="name" select="1"/>
	                    <field name="month" select="1"/>
	                    <field name="user_id" select="1"/>
	                    <field name="section_id" select="1" widget="selection"/>
	                    <field name="nbr" select="1"/>
	                    <field name="state" select="1"/>
                   </group>
               </search>
            </field>
        </record>

        <menuitem id="crm.next_id_64" name="Reporting" parent="crm.menu_crm" sequence="50"/>
        <menuitem id="crm.next_id_52" name="All Cases" parent="crm.next_id_64" sequence="0"/>

        <record id="action_report_crm_case_user_tree" model="ir.actions.act_window">
            <field name="name">Cases by User and Section</field>
            <field name="res_model">report.crm.case.user</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,graph</field>
            <field name="search_view_id" ref="view_crm_case_user_filter"/>
        </record>
        <menuitem action="action_report_crm_case_user_tree" id="menu_crm_case_user_tree" parent="crm.next_id_64"/>

        <record id="action_report_crm_case_user_tree_my" model="ir.actions.act_window">
            <field name="name">My cases by section</field>
            <field name="res_model">report.crm.case.user</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,graph</field>
            <field name="domain">[('user_id','=',uid)]</field>
            <field name="search_view_id" ref="view_crm_case_user_filter"/>
        </record>
        <menuitem action="action_report_crm_case_user_tree_my" id="menu_crm_case_user_tree_my" parent="crm.next_id_64"/>

        <!-- # Cases by section and categoryof case -->

        <record id="view_crm_case_categ_tree" model="ir.ui.view">
            <field name="name">report.crm.case.categ.tree</field>
            <field name="model">report.crm.case.categ</field><commit_msg>[REF]: Removed 'My cases by section' menu from report_crm view.<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <!--
	Cases by user and section
	-->

        <record id="view_crm_case_user_tree" model="ir.ui.view">
            <field name="name">report.crm.case.user.tree</field>
            <field name="model">report.crm.case.user</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Cases by User and Section">
                    <field name="name" />
                    <field name="month"/>
                    <field name="user_id"/>
                    <field name="section_id"/>
                    <field name="nbr"/>
                    <field name="delay_close"/>
                    <field name="amount_revenue"/>
                    <field name="amount_costs"/>
                    <field name="amount_revenue_prob"/>
                    <field name="probability"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>
        <record id="view_crm_case_user_form" model="ir.ui.view">
            <field name="name">report.crm.case.user.form</field>
            <field name="model">report.crm.case.user</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Cases by User and Section">
                    <field name="name" select="1"/>
                    <field name="month" select="1"/>
                    <field name="user_id" select="1"/>
                    <field name="section_id" select="1" widget="selection"/>
                    <field name="nbr" select="1"/>
                    <field name="state" select="1"/>
                </form>
            </field>
        </record>

        <record id="view_crm_case_user_graph" model="ir.ui.view">
            <field name="name">report.crm.case.user.graph</field>
            <field name="model">report.crm.case.user</field>
            <field name="type">graph</field>
            <field name="arch" type="xml">
                <graph orientation="horizontal" string="Cases by User and Section" type="bar">
                    <field name="state"/>
                    <field name="nbr" operator="+"/>
                    <field group="True" name="user_id"/>
                </graph>
            </field>
        </record>

        <record id="view_crm_case_user_filter" model="ir.ui.view">
            <field name="name">report.crm.case.user.select</field>
            <field name="model">report.crm.case.user</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Cases by User">
                   <group col="12" colspan="4">
                   		<filter string="My Cases" icon="terp-hr" domain="[('user_id','=',uid)]" help="My cases by section"/>
                   		<separator orientation="vertical"/>
                   		<filter string="This Year" icon="terp-hr" domain="[('name','=',time.localtime()[0])]"/>
						<filter string="This Month" icon="terp-hr" domain="[('month','=',time.localtime()[1])]"/>
						<separator orientation="vertical"/>
						<field name="name" select="1"/>
	                    <field name="month" select="1"/>
	                    <field name="user_id" select="1"/>
	                    <field name="section_id" select="1" widget="selection"/>
	                    <field name="nbr" select="1"/>
	                    <field name="state" select="1"/>
                   </group>
               </search>
            </field>
        </record>

        <menuitem id="crm.next_id_64" name="Reporting" parent="crm.menu_crm" sequence="50"/>
        <menuitem id="crm.next_id_52" name="All Cases" parent="crm.next_id_64" sequence="0"/>

        <record id="action_report_crm_case_user_tree" model="ir.actions.act_window">
            <field name="name">Cases by User and Section</field>
            <field name="res_model">report.crm.case.user</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,graph</field>
            <field name="search_view_id" ref="view_crm_case_user_filter"/>
        </record>
        <menuitem action="action_report_crm_case_user_tree" id="menu_crm_case_user_tree" parent="crm.next_id_64"/>

        <!-- # Cases by section and categoryof case -->

        <record id="view_crm_case_categ_tree" model="ir.ui.view">
            <field name="name">report.crm.case.categ.tree</field>
            <field name="model">report.crm.case.categ</field>
{'fraction_non_alphanumeric': 0.16093506493506493, 'fraction_numerical': 0.00664935064935065, 'mean_word_length': 1.9329677026203533, 'pattern_counts': {'":': 0, '<': 225, '<?xml version=': 2, '>': 225, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5308535', 'n_tokens_mistral': 2895, 'n_tokens_neox': 2748, 'n_words': 495}