<commit_before><openerp>
    <data>

        <record id="view_partner_doc_form" model="ir.ui.view">
            <field name="name">res.partner.doc.form.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <page name="internal_notes" position="inside">
                    <label for="document_ids" string="Documents"/>
                    <field name="document_ids">
                       <tree string="Documents">
                          <field name="name"/>
                          <field name="description"/>
                          <field name="type_id"/>
                          <field name="content_filename" invisible="1"/>
                          <field name="content" filename="content_filename"/>
                       </tree>
                    </field><commit_msg>Add a Documents button in Partner form<commit_after><openerp>
    <data>

        <record id="view_partner_doc_form" model="ir.ui.view">
            <field name="name">res.partner.doc.form.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <xpath expr="//div[@name='buttons']" position="inside">
                    <button class="oe_inline" type="action" string="Documents"
                        name="%(inspy_edm.action_inspy_edm_doc)d"
                        context="{'search_default_partner_id': active_id}" />
                </xpath>
                <page name="internal_notes" position="inside">
                    <label for="document_ids" string="Documents"/>
                    <field name="document_ids">
                       <tree string="Documents">
                          <field name="name"/>
                          <field name="description"/>
                          <field name="type_id"/>
                          <field name="content_filename" invisible="1"/>
                          <field name="content" filename="content_filename"/>
                       </tree>
                    </field>
{'fraction_non_alphanumeric': 0.13411871318531943, 'fraction_numerical': 0.0009062075215224287, 'mean_word_length': 1.5555555555555556, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 46, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6704630', 'n_tokens_mistral': 570, 'n_tokens_neox': 538, 'n_words': 94}