<?xml version="1.0"?>
<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>
                <xpath expr="//page[@string='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>
                </xpath>
            </field>
        </record>

    </data>
</openerp>

<?xml version="1.0"?>
<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 oe_stat_button" type="action" string="Documents"
                        name="%(inspy_edm.action_inspy_edm_doc)d"
                        icon="fa-files-o"
                        context="{'search_default_partner_id': active_id}" />
                </xpath>
                <xpath expr="//page[@string='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>
                </xpath>
            </field>
        </record>

    </data>
</openerp>

Use oe_stat_button for Documents into partner form view
Use oe_stat_button for Documents into partner form view
