<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record id="invoice_form_inherit" model="ir.ui.view">
        <field name="name">account.invoice.form.inherit</field>
        <field name="model">account.invoice</field>
        <field name="inherit_id" ref="account.invoice_form"/>
        <field name="arch" type="xml">
            <xpath expr="//div[@name='button_box']" position="inside">
                <button class="oe_stat_button" name="open_commissions" icon="fa-money" type="object"
                        attrs="{'invisible': [('commission_count', '=', 0)]}">
                    <field name="commission_count" string="Commissions" widget="statinfo"/>
                </button>
            </xpath>
        </field>
    </record>

</odoo>