<?xml version="1.0"?>
<data><div name="button_box" position="inside">
                    <button type="object" class="oe_stat_button" icon="fa-pencil-square-o" name="action_view_partner_invoices" groups="account.group_account_invoice,account.group_account_readonly" context="{'default_partner_id': id}">
                        <div class="o_form_field o_stat_info">
                            <span class="o_stat_value">
                                <field name="currency_id" invisible="1"/>
                                <field name="total_invoiced" widget="monetary" options="{'currency_field': 'currency_id'}"/>
                            </span>
                            <span class="o_stat_text">Invoiced</span>
                        </div>
                    </button>
                    <button class="oe_stat_button" type="action" name="301" groups="account.group_account_invoice" icon="fa-pencil-square-o" help="Vendor Bills" invisible="supplier_invoice_count == 0">
                        <field string="Vendor Bills" name="supplier_invoice_count" widget="statinfo"/>
                    </button>
                </div>

                <page name="internal_notes" position="inside">
                    <group groups="account.group_account_invoice,account.group_account_readonly">
                        <group groups="account.group_warning_account" col="2">
                            <separator string="Warning on the Invoice" colspan="2"/>
                            <field name="invoice_warn" nolabel="1" colspan="2" required="1"/>
                            <field name="invoice_warn_msg" placeholder="Type a message..." colspan="2" nolabel="1" invisible="invoice_warn in (False, 'no-message')" required="invoice_warn and invoice_warn != 'no-message'"/>
                        </group>
                    </group>
                </page>

                <field name="vat" position="before">
                    <field name="partner_vat_placeholder" invisible="1"/> <!-- Needed for the placeholder widget -->
                </field>
                <field name="vat" position="attributes">
                    <attribute name="options">{'placeholder_field': 'partner_vat_placeholder'}</attribute>
                </field>

                <field name="company_registry" position="before">
                    <field name="partner_company_registry_placeholder" invisible="1"/> <!-- Needed for the placeholder widget -->
                </field>
                <field name="company_registry" position="attributes">
                    <attribute name="options">{'placeholder_field': 'partner_company_registry_placeholder'}</attribute>
                </field>
            </data>