<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_purchase_order_form_inherit" model="ir.ui.view">
        <field name="name">view.purchase.order.inherit</field>
        <field name="model">purchase.order</field>
        <field name="inherit_id" ref="purchase.purchase_order_form" />
        <field name="arch" type="xml">
            <xpath expr="//button[@name='button_cancel']" position="before">
                <button
                    name="%(purchase_deposit.action_view_purchase_advance_payment_inv)d"
                    states="purchase"
                    type="action"
                    string="Register Deposit"
                />
            </xpath>
        </field>
    </record>
</odoo>
