<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_order_form" model="ir.ui.view">
        <field name="name">sale.order.form (in sale_stock_return_request)</field>
        <field name="model">sale.order</field>
        <field name="inherit_id" ref="sale.view_order_form" />
        <field name="arch" type="xml">
            <xpath expr="//button[@name='action_draft']" position="after">
                <field name="show_create_return_request" invisible="1" />
                <button
                    name="action_create_return_request"
                    string="Create Return Request"
                    type="object"
                    invisible="not show_create_return_request"
                    groups="stock.group_stock_user"
                />
            </xpath>
        </field>
    </record>
</odoo>
