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

    <record id="view_purchase_form" model="ir.ui.view">
        <field name="model">purchase.order</field>
        <field name="inherit_id" ref="purchase.purchase_order_form" />
        <field name="arch" type="xml">
            <field name="order_line" position="before">
                <button
                    name="add_product"
                    string="Add from supplier's product list"
                    type="object"
                    attrs="{'invisible': [('state', 'not in', ('draft', 'sent'))]}"
                    class="oe_highlight"
                />
            </field>
        </field>
    </record>

</odoo>
