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

        <!-- Add section_id (Sales Team) to res.partner -->
        <record id="view_partners_form_crm1" model="ir.ui.view">
                <field name="name">view.res.partner.form.crm.inherited1</field>
                <field name="model">res.partner</field>
                <field name="inherit_id" ref="base.view_partner_form"/>
                <field eval="18" name="priority"/>
                <field name="arch" type="xml">
                    <field name="user_id" position="after">
                        <field name="section_id" completion="1"/>
                    </field>
                </field>
        </record>

        <record id="view_partners_form_crm3" model="ir.ui.view">
                <field name="name">view.res.partner.search.crm.inherited3</field>
                <field name="model">res.partner</field>
                <field name="inherit_id" ref="base.view_res_partner_filter"/>
                <field eval="18" name="priority"/>
                <field name="arch" type="xml">
                    <xpath expr="//field[@name='user_id']" position="after">
                        <field name="country_id"/>
                    </xpath>
                    <xpath expr="//group[@string='Group By...']" position="after">
                        <group string="Display">
                            <filter string="Show Sales Team" context="{'invisible_section': False}"/>
                        </group>
                    </xpath>
                </field>
        </record>

        <!-- open meetings related to given partner -->
        <record id="crm_meeting_partner" model="ir.actions.act_window">
            <field name="name">Meetings</field>
            <field name="src_model">res.partner</field>
            <field name="res_model">crm.meeting</field>
            <field name="view_mode">calendar,tree,form,gantt</field>
            <field name="context">{'default_partner_ids': [active_id]}</field>
        </record>

        <!-- open opportunities related to given partner -->
        <record model="ir.actions.act_window" id="relate_partner_opportunities">
            <field name="name">Opportunities</field>
            <field name="res_model">crm.lead</field><commit_msg>[IMP] crm: remove 'country_id' from res.partner search view<commit_after><?xml version="1.0"?>
<openerp>
    <data>

        <!-- Add section_id (Sales Team) to res.partner -->
        <record id="view_partners_form_crm1" model="ir.ui.view">
                <field name="name">view.res.partner.form.crm.inherited1</field>
                <field name="model">res.partner</field>
                <field name="inherit_id" ref="base.view_partner_form"/>
                <field eval="18" name="priority"/>
                <field name="arch" type="xml">
                    <field name="user_id" position="after">
                        <field name="section_id" completion="1"/>
                    </field>
                </field>
        </record>

        <record id="view_partners_form_crm3" model="ir.ui.view">
                <field name="name">view.res.partner.search.crm.inherited3</field>
                <field name="model">res.partner</field>
                <field name="inherit_id" ref="base.view_res_partner_filter"/>
                <field eval="18" name="priority"/>
                <field name="arch" type="xml">
                    <xpath expr="//group[@string='Group By...']" position="after">
                        <group string="Display">
                            <filter string="Show Sales Team" context="{'invisible_section': False}"/>
                        </group>
                    </xpath>
                </field>
        </record>

        <!-- open meetings related to given partner -->
        <record id="crm_meeting_partner" model="ir.actions.act_window">
            <field name="name">Meetings</field>
            <field name="src_model">res.partner</field>
            <field name="res_model">crm.meeting</field>
            <field name="view_mode">calendar,tree,form,gantt</field>
            <field name="context">{'default_partner_ids': [active_id]}</field>
        </record>

        <!-- open opportunities related to given partner -->
        <record model="ir.actions.act_window" id="relate_partner_opportunities">
            <field name="name">Opportunities</field>
            <field name="res_model">crm.lead</field>
{'fraction_non_alphanumeric': 0.15313694625590285, 'fraction_numerical': 0.00494715538565325, 'mean_word_length': 1.9243918474687705, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 2, '>': 108, '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': '4602278', 'n_tokens_mistral': 1282, 'n_tokens_neox': 1221, 'n_words': 214}