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

<!-- Leads by user and section Tree View -->

        <record id="view_report_crm_lead_tree" model="ir.ui.view">
            <field name="name">crm.lead.report.tree</field>
            <field name="model">crm.lead.report</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
            <tree string="Leads Analysis">
                <field name="name" invisible="1"/>
                <field name="state"  invisible="1"/>
                <field name="stage_id"  invisible="1"/>
                <field name="categ_id" invisible="1"/>
                <field name="type_id" invisible="1"/>
                <field name="channel_id" invisible="1"/>
                <field name="type" invisible="1"/>
                <field name="priority" invisible="1"/>
                <field name="month" invisible="1"/>
                <field name="section_id" invisible="1"/>
                <field name="user_id" invisible="1"/>
                <field name="company_id" invisible="1"/>
                <field name="partner_id" invisible="1"/>
                <field name="country_id" invisible="1"/>
                <field name="day" invisible="1"/>
                <field name="nbr" sum="# Leads"/>
                <field name="email" sum="# Mails"/>
                <field name="delay_open"/>
                <field name="delay_close"/>
                <field name="avg_answers"/>
             </tree>
            </field>
        </record>

<!-- Leads by user and section Graph View -->

        <record id="view_report_crm_lead_graph" model="ir.ui.view">
            <field name="name">crm.lead.report.graph</field>
            <field name="model">crm.lead.report</field>
            <field name="type">graph</field>
            <field name="arch" type="xml">
                <graph orientation="vertical" string="Leads Analysis" type="bar">
                    <field name="stage_id"/>
                    <field name="nbr" operator="+"/>
                    <field group="True" name="user_id"/>
                </graph>
            </field>
        </record>

        <record id="view_report_crm_opportunity_graph" model="ir.ui.view">
            <field name="name">crm.opportunity.report.graph</field>
            <field name="model">crm.lead.report</field>
            <field name="type">graph</field>
            <field name="arch" type="xml">
                <graph orientation="vertical" string="Leads Analysis" type="bar">
                    <field name="stage_id"/>
                    <field name="planned_revenue" operator="+"/>
                    <field group="True" name="user_id"/>
                </graph>
            </field>
        </record>

<!-- Leads by user and section Search View -->

        <record id="view_report_crm_lead_filter" model="ir.ui.view">
            <field name="name">crm.lead.report.select</field>
            <field name="model">crm.lead.report</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Leads Analysis">
                    <group col="20" colspan="8">
                        <filter string="  Year  " icon="terp-go-year"
                            domain="[('create_date','&lt;=', time.strftime('%%Y-%%m-%%d')),('create_date','&gt;=',time.strftime('%%Y-01-01'))]"
                            help="Leads/Opportunities created in current year"/>
                        <filter string="   Month   " icon="terp-go-month" name="this_month"
                            domain="[('create_date','&lt;=', time.strftime('%%Y-%%m-%%d')),('create_date','&gt;=',time.strftime('%%Y-%%m-01'))]"
                            help="Leads/Opportunities created in current month"/>
                        <filter icon="terp-go-month" string="    Month-1    " separator="1"
                            domain="[('create_date','&lt;=', (datetime.date (int(time.strftime('%%Y')), datetime.date.today().month, 1) - datetime.timedelta (days = 1)).strftime('%%Y-%%m-%%d')),('create_date','&gt;',(datetime.date (int(time.strftime('%%Y')), datetime.date.today().month-1, 1)).strftime('%%Y-%%m-%%d'))]"
                            help="Leads/Opportunities created in last month"/>
                            
                        <separator orientation="vertical" />
                        <filter icon="terp-check"
                            string="Current"
                            domain="[('state','in',('draft','open'))]"/>
                        <filter icon="gtk-media-pause"
                            string="Pending"
                            domain="[('state','=','pending')]"/>
                        <filter icon="terp-dialog-close"
                            string="Closed"
                            domain="[('state','=','done')]"/>
                            
                        <separator orientation="vertical" />
                        <field name="section_id"
                            default="context.get('section_id', False)"
                            context="{'invisible_section': False}">
                            <filter icon="terp-crm"
                                context="{'invisible_section': False}"
                                domain="[('section_id.user_id','=',uid)]"
                                help="My team" />
                        </field>
                        <field name="user_id" string="Salesman">
                            <filter icon="terp-personal+" string="My Case" help="My Case" domain="[('user_id','=',uid)]" />
                        </field>
                   </group>
                   <newline/>
                   <group  expand="1" string="Group By...">
                        <filter string="Salesman" name="user" icon="terp-personal"
                            domain="[]" context="{'group_by':'user_id'}" /><commit_msg>[IMP] crm:-rename the 'Current' button to 'Active' in lead analysis and added the tooltip<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

<!-- Leads by user and section Tree View -->

        <record id="view_report_crm_lead_tree" model="ir.ui.view">
            <field name="name">crm.lead.report.tree</field>
            <field name="model">crm.lead.report</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
            <tree string="Leads Analysis">
                <field name="name" invisible="1"/>
                <field name="state"  invisible="1"/>
                <field name="stage_id"  invisible="1"/>
                <field name="categ_id" invisible="1"/>
                <field name="type_id" invisible="1"/>
                <field name="channel_id" invisible="1"/>
                <field name="type" invisible="1"/>
                <field name="priority" invisible="1"/>
                <field name="month" invisible="1"/>
                <field name="section_id" invisible="1"/>
                <field name="user_id" invisible="1"/>
                <field name="company_id" invisible="1"/>
                <field name="partner_id" invisible="1"/>
                <field name="country_id" invisible="1"/>
                <field name="day" invisible="1"/>
                <field name="nbr" sum="# Leads"/>
                <field name="email" sum="# Mails"/>
                <field name="delay_open"/>
                <field name="delay_close"/>
                <field name="avg_answers"/>
             </tree>
            </field>
        </record>

<!-- Leads by user and section Graph View -->

        <record id="view_report_crm_lead_graph" model="ir.ui.view">
            <field name="name">crm.lead.report.graph</field>
            <field name="model">crm.lead.report</field>
            <field name="type">graph</field>
            <field name="arch" type="xml">
                <graph orientation="vertical" string="Leads Analysis" type="bar">
                    <field name="stage_id"/>
                    <field name="nbr" operator="+"/>
                    <field group="True" name="user_id"/>
                </graph>
            </field>
        </record>

        <record id="view_report_crm_opportunity_graph" model="ir.ui.view">
            <field name="name">crm.opportunity.report.graph</field>
            <field name="model">crm.lead.report</field>
            <field name="type">graph</field>
            <field name="arch" type="xml">
                <graph orientation="vertical" string="Leads Analysis" type="bar">
                    <field name="stage_id"/>
                    <field name="planned_revenue" operator="+"/>
                    <field group="True" name="user_id"/>
                </graph>
            </field>
        </record>

<!-- Leads by user and section Search View -->

        <record id="view_report_crm_lead_filter" model="ir.ui.view">
            <field name="name">crm.lead.report.select</field>
            <field name="model">crm.lead.report</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Leads Analysis">
                    <group col="20" colspan="8">
                        <filter string="  Year  " icon="terp-go-year"
                            domain="[('create_date','&lt;=', time.strftime('%%Y-%%m-%%d')),('create_date','&gt;=',time.strftime('%%Y-01-01'))]"
                            help="Leads/Opportunities created in current year"/>
                        <filter string="   Month   " icon="terp-go-month" name="this_month"
                            domain="[('create_date','&lt;=', time.strftime('%%Y-%%m-%%d')),('create_date','&gt;=',time.strftime('%%Y-%%m-01'))]"
                            help="Leads/Opportunities created in current month"/>
                        <filter icon="terp-go-month" string="    Month-1    " separator="1"
                            domain="[('create_date','&lt;=', (datetime.date (int(time.strftime('%%Y')), datetime.date.today().month, 1) - datetime.timedelta (days = 1)).strftime('%%Y-%%m-%%d')),('create_date','&gt;',(datetime.date (int(time.strftime('%%Y')), datetime.date.today().month-1, 1)).strftime('%%Y-%%m-%%d'))]"
                            help="Leads/Opportunities created in last month"/>
                            
                        <separator orientation="vertical" />
                        <filter icon="terp-check"
                            string="Active"
                            domain="[('state','in',('draft','open'))]"
                            help="Leads/Opportunities which are in draft and open state"/>
                        <filter icon="gtk-media-pause"
                            string="Pending"
                            domain="[('state','=','pending')]"
                            help="Leads/Opportunities which are in pending state"/>
                        <filter icon="terp-dialog-close"
                            string="Closed"
                            domain="[('state','=','done')]"
                            help="Leads/Opportunities which are in done state"/>
                            
                        <separator orientation="vertical" />
                        <field name="section_id"
                            default="context.get('section_id', False)"
                            context="{'invisible_section': False}">
                            <filter icon="terp-crm"
                                context="{'invisible_section': False}"
                                domain="[('section_id.user_id','=',uid)]"
                                help="My team" />
                        </field>
                        <field name="user_id" string="Salesman">
                            <filter icon="terp-personal+" string="My Case" help="My Case" domain="[('user_id','=',uid)]" />
                        </field>
                   </group>
                   <newline/>
                   <group  expand="1" string="Group By...">
                        <filter string="Salesman" name="user" icon="terp-personal"
                            domain="[]" context="{'group_by':'user_id'}" />
{'fraction_non_alphanumeric': 0.16703476482617588, 'fraction_numerical': 0.005562372188139059, 'mean_word_length': 1.5663308144416457, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 2, '>': 195, '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': '4429144', 'n_tokens_mistral': 3373, 'n_tokens_neox': 3182, 'n_words': 581}