<odoo>

    <record model="ir.ui.view" id="product_supplierinfo_form_view">
         <field name="model">product.supplierinfo</field>
         <field
            name="inherit_id"
            ref="purchase_discount.product_supplierinfo_form_view"
        />
         <field name="arch" type="xml">
              <xpath expr="//field[@name='discount']" position="attributes">
                <attribute name="string">Total discount</attribute>
            </xpath>
            <xpath expr="//field[@name='discount']" position="after">
                <field name="discount1" />
                <field name="discount2" />
                <field name="discount3" />
            </xpath>
         </field>
     </record>

    <record model="ir.ui.view" id="product_supplierinfo_tree_view">
         <field name="model">product.supplierinfo</field>
         <field
            name="inherit_id"
            ref="purchase_discount.product_supplierinfo_tree_view"
        />
         <field name="arch" type="xml">
             <xpath expr="//field[@name='discount']" position="attributes">
                <attribute name="optional">hide</attribute>
                <attribute name="string">Total discount</attribute>
            </xpath>
            <xpath expr="//field[@name='discount']" position="after">
                <field name="discount1" optional="show" />
                <field name="discount2" optional="show" />
                <field name="discount3" optional="show" />
            </xpath>
         </field>
     </record>

</odoo>
