<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_partner_form" model="ir.ui.view">
        <field name="name">res.partner.form</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.view_partner_form" />
        <field name="arch" type="xml">
            <div name="button_box" position="inside">
                <button
                    name="action_see_products_by_seller"
                    type="object"
                    class="oe_stat_button"
                    icon="fa-truck"
                    attrs="{'invisible': [('product_supplied_count', '=', 0)]}"
                >
                    <field
                        name="product_supplied_count"
                        widget="statinfo"
                        string="Products Supplied"
                    />
                </button>
            </div>
        </field>
    </record>
</odoo>
