<data><field name="partner_id" position="attributes">
                <attribute name="context">{'res_partner_search_mode': 'customer'}</attribute>
            </field>
            <xpath expr="//field[@name='child_ids']/list/field[@name='partner_id']" position="attributes">
                <attribute name="context">{'res_partner_search_mode': 'customer'}</attribute>
            </xpath>
            <xpath expr="//field[@name='depend_on_ids']/list/field[@name='partner_id']" position="attributes">
                <attribute name="context">{'res_partner_search_mode': 'customer'}</attribute>
            </xpath>
        </data>