<?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': active_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="271" groups="account.group_account_invoice" icon="fa-pencil-square-o" help="Vendor Bills" attrs="{'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" attrs="{'required':[('invoice_warn','!=', False), ('invoice_warn','!=','no-message')], 'invisible':[('invoice_warn','in',(False,'no-message'))]}"/>
                        </group>
                    </group>
                </page>
            </data>