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

        <!--     Opportunity tree view  -->
        <record id="view_report_crm_partner_assign_filter" model="ir.ui.view">
            <field name="name">crm.partner.report.assign.select</field>
            <field name="model">crm.partner.report.assign</field>
            <field name="arch" type="xml">
                <search string="Partner assigned Analysis">
                    <field name="section_id" groups="base.group_multi_salesteams"/>
                    <field name="user_id"/>
                    <field name="grade_id"/>
                    <field name="activation"/>
                    <group  expand="1" string="Group By...">
                        <filter string="Salesperson" name="user" icon="terp-personal"
                            domain="[]" context="{'group_by':'user_id'}" />
                        <filter string="Country" icon="terp-go-home" name="group_country" context="{'group_by':'country_id'}" />
                        <filter string="Section" icon="terp-personal+"
                            domain="[]" context="{'group_by':'section_id'}" />
                        <filter string="Activation" name="group_activation" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'activation'}" />
                        <filter string="Grade" name="group_grade" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'grade_id'}" />
                        <filter string="Partner" name="" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'partner_id'}" />
                        <filter string="Date Invoice" name="group_period_id" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'period_id'}" />
                        <filter string="Date Partnership" name="group_date_partnership" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'date_partnership'}" />
                        <filter string="Date Review" name="group_date_review" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'date_review'}" />
                    </group>
                </search>
            </field>
        </record>

<!-- Crm Lead Assign report Graph View -->

       <record id="view_report_crm_partner_assign_tree" model="ir.ui.view">
            <field name="name">crm.partner.assign.report.tree</field>
            <field name="model">crm.partner.report.assign</field>
            <field name="arch" type="xml">
            <tree string="Opportunities Assignment Analysis" create="false">
                <field name="partner_id" invisible="1"/>
                <field name="country_id" invisible="1"/>
                <field name="grade_id" invisible="1"/>
                <field name="activation" invisible="1"/>
                <field name="date_review" invisible="1"/>
                <field name="date_partnership" invisible="1"/>
                <field name="period_id" invisible="1"/>
                <field name="section_id" invisible="1" groups="base.group_multi_salesteams"/>
                <field name="user_id" invisible="1"/>
                <field name="opp"/>
                <field name="turnover"/>
             </tree>
            </field>
       </record>

       <!-- Leads by user and section Action -->

       <record id="action_report_crm_partner_assign" model="ir.actions.act_window">
            <field name="name">Partnership Analysis</field>
            <field name="res_model">crm.partner.report.assign</field>
            <field name="context">{'search_default_group_grade': 1, 'group_by_no_leaf':1,'group_by':[]}</field>
            <field name="view_mode">tree</field>
            <field name="domain">[('grade_id', '!=', False)]</field>
        </record>

       <menuitem id="menu_report_crm_partner_assign_tree"
           parent="base.next_id_64" action="action_report_crm_partner_assign" sequence="25"/>

    </data>
</openerp>
<commit_msg>[IMP] removes the tree view in Partnership Analysis reporting menu, and replaces it with a graph view in pivot table mode (addon crm_partner_assign)<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <!--     Opportunity tree view  -->
        <record id="view_report_crm_partner_assign_filter" model="ir.ui.view">
            <field name="name">crm.partner.report.assign.select</field>
            <field name="model">crm.partner.report.assign</field>
            <field name="arch" type="xml">
                <search string="Partner assigned Analysis">
                    <field name="section_id" groups="base.group_multi_salesteams"/>
                    <field name="user_id"/>
                    <field name="grade_id"/>
                    <field name="activation"/>
                    <group  expand="1" string="Group By...">
                        <filter string="Salesperson" name="user" icon="terp-personal"
                            domain="[]" context="{'group_by':'user_id'}" />
                        <filter string="Country" icon="terp-go-home" name="group_country" context="{'group_by':'country_id'}" />
                        <filter string="Section" icon="terp-personal+"
                            domain="[]" context="{'group_by':'section_id'}" />
                        <filter string="Activation" name="group_activation" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'activation'}" />
                        <filter string="Grade" name="group_grade" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'grade_id'}" />
                        <filter string="Partner" name="" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'partner_id'}" />
                        <filter string="Invoice Period" name="group_period_id" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'period_id'}" />
                        <filter string="Date Partnership" name="group_date_partnership" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'date_partnership'}" />
                        <filter string="Date Review" name="group_date_review" icon="terp-stock_symbol-selection"
                            domain="[]" context="{'group_by':'date_review'}" />
                    </group>
                </search>
            </field>
        </record>

       <record id="view_report_crm_partner_assign_graph" model="ir.ui.view">
            <field name="name">crm.partner.assign.report.graph</field>
            <field name="model">crm.partner.report.assign</field>
            <field name="arch" type="xml">
                <graph string="Opportunities Assignment Analysis" type="pivot" stacked="True">
                    <field name="grade_id" type="row"/>
                    <field name="opp" type="measure"/>
                    <field name="turnover" type="measure"/>
                </graph>
            </field>
       </record>

       <!-- Leads by user and section Action -->

       <record id="action_report_crm_partner_assign" model="ir.actions.act_window">
            <field name="name">Partnership Analysis</field>
            <field name="res_model">crm.partner.report.assign</field>
            <field name="context">{'group_by_no_leaf':1,'group_by':[]}</field>
            <field name="view_mode">graph</field>
            <field name="domain">[('grade_id', '!=', False)]</field>
        </record>

       <menuitem id="menu_report_crm_partner_assign_tree"
           parent="base.next_id_64" action="action_report_crm_partner_assign" sequence="25"/>

    </data>
</openerp>

{'fraction_non_alphanumeric': 0.1544377206253152, 'fraction_numerical': 0.0035300050428643467, 'mean_word_length': 2.09399375975039, 'pattern_counts': {'":': 0, '<': 128, '<?xml version=': 2, '>': 128, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '4262365', 'n_tokens_mistral': 2224, 'n_tokens_neox': 2117, 'n_words': 354}