<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="sale_order_agreement_form_view" model="ir.ui.view">
        <field name="name">sale.order.agreement.form.view</field>
        <field name="model">sale.order</field>
        <field name="inherit_id" ref="sale.view_order_form"/>
        <field name="arch" type="xml">
            <field name="client_order_ref" position="after">
                <field name="agreement_id"/>
            </field>
            <field name="partner_id" position="after">
                <field name="agreement_type_id"
                       groups="agreement.group_use_agreement_type"
                       />
            </field>
        </field>
    </record>

</odoo>
