<?xml version="1.0"?>
<div name="button_box" position="inside">
                    <field name="related_contacts_count" invisible="1"/>
                    <button name="action_related_contacts" class="oe_stat_button" icon="fa-address-card-o" type="object" attrs="{'invisible': ['|', ('id', '=', False), ('related_contacts_count', '=', 0)]}">
                        <div class="o_field_widget o_stat_info">
                            <span class="o_stat_value"><field name="related_contacts_count"/></span>
                            <span class="o_stat_text">Contacts</span>
                        </div>
                    </button>
                </div>
            