<commit_before><?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_res_partner_filter_contact" model="ir.ui.view">
    <field name="name">res.partner.select.contact</field>
    <field name="model">res.partner</field>
    <field name="inherit_id" ref="base.view_res_partner_filter"/>
    <field name="arch" type="xml">
        <filter name="type_company" position="after">
            <separator/>
            <filter string="All positions" name="type_otherpositions"
                    context="{'search_show_all_positions': {'is_set': True, 'set_value': True}}"
                    help="All partner positions"/>
        </filter>
        <xpath expr="/search/group[@name='group_by']" position="inside">
            <filter string="Person" name="group_person" context="{'group_by': 'contact_id'}"/>
        </xpath>
    </field>
</record>

<record id="view_res_partner_tree_contact" model="ir.ui.view">
    <field name="name">res.partner.tree.contact</field>
    <field name="model">res.partner</field>
    <field name="inherit_id" ref="base.view_partner_tree"/>
    <field name="arch" type="xml">
        <field name="parent_id" position="after">
            <field name="contact_id" invisible="1"/>
        </field>
    </field>
</record>

<record model="ir.ui.view" id="view_partner_form_inherit">
    <field name="name">res.partner.form.contact</field>
    <field name="model">res.partner</field>
    <field name="inherit_id" ref="base.view_partner_form"/>
    <field name="type">form</field>
    <field name="arch" type="xml">
        <field name="is_company" position="after">
            <field name="contact_type" invisible="1"/>
        </field>
        <page name='internal_notes' position="before">
            <page string="Other Positions" attrs="{'invisible': ['|',('is_company','=',True),('contact_id','!=',False)]}">
                <field name="other_contact_ids" context="{'default_contact_id': active_id, 'default_name': name, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier}}" mode="kanban">
                    <kanban>
                        <field name="color"/>
                        <field name="name"/>
                        <field name="title"/>
                        <field name="email"/>
                        <field name="parent_id"/>
                        <field name="is_company"/>
                        <field name="function"/>
                        <field name="phone"/>
                        <field name="street"/>
                        <field name="street2"/>
                        <field name="zip"/>
                        <field name="city"/>
                        <field name="country_id"/>
                        <field name="mobile"/><commit_msg>[FIX] partner_contact_in_several_companies: Incorrect syntax for XML context<commit_after><?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_res_partner_filter_contact" model="ir.ui.view">
    <field name="name">res.partner.select.contact</field>
    <field name="model">res.partner</field>
    <field name="inherit_id" ref="base.view_res_partner_filter"/>
    <field name="arch" type="xml">
        <filter name="type_company" position="after">
            <separator/>
            <filter string="All positions" name="type_otherpositions"
                    context="{'search_show_all_positions': {'is_set': True, 'set_value': True}}"
                    help="All partner positions"/>
        </filter>
        <xpath expr="/search/group[@name='group_by']" position="inside">
            <filter string="Person" name="group_person" context="{'group_by': 'contact_id'}"/>
        </xpath>
    </field>
</record>

<record id="view_res_partner_tree_contact" model="ir.ui.view">
    <field name="name">res.partner.tree.contact</field>
    <field name="model">res.partner</field>
    <field name="inherit_id" ref="base.view_partner_tree"/>
    <field name="arch" type="xml">
        <field name="parent_id" position="after">
            <field name="contact_id" invisible="1"/>
        </field>
    </field>
</record>

<record model="ir.ui.view" id="view_partner_form_inherit">
    <field name="name">res.partner.form.contact</field>
    <field name="model">res.partner</field>
    <field name="inherit_id" ref="base.view_partner_form"/>
    <field name="type">form</field>
    <field name="arch" type="xml">
        <field name="is_company" position="after">
            <field name="contact_type" invisible="1"/>
        </field>
        <page name='internal_notes' position="before">
            <page string="Other Positions" attrs="{'invisible': ['|',('is_company','=',True),('contact_id','!=',False)]}">
                <field name="other_contact_ids" context="{'default_contact_id': active_id, 'default_name': name, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier}" mode="kanban">
                    <kanban>
                        <field name="color"/>
                        <field name="name"/>
                        <field name="title"/>
                        <field name="email"/>
                        <field name="parent_id"/>
                        <field name="is_company"/>
                        <field name="function"/>
                        <field name="phone"/>
                        <field name="street"/>
                        <field name="street2"/>
                        <field name="zip"/>
                        <field name="city"/>
                        <field name="country_id"/>
                        <field name="mobile"/>
{'fraction_non_alphanumeric': 0.16735679779158041, 'fraction_numerical': 0.0027605244996549345, 'mean_word_length': 2.494273658830621, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 2, '>': 123, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '5626358', 'n_tokens_mistral': 1684, 'n_tokens_neox': 1630, 'n_words': 299}