<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 Tecnativa - David Vidal
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>

    <record id="purchase_order_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">
            <xpath expr="//field[@name='tax_totals']" position="before">
                <div class="o_td_label" name="general_discount">
                    <label class="o_form_label" for="general_discount" />
                    <button
                        name="action_update_general_discount"
                        class="oe_link oe_edit_only fa fa-refresh"
                        type="object"
                        title="Update general discounts"
                    />
                </div>
                <field name="general_discount" class="oe_right" nolabel="1" />
            </xpath>
        </field>
    </record>

</odoo>
