<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2018 Simone Rubino - Agile Business Group
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="view_order_form" model="ir.ui.view">
        <field name="name">Sale order priority</field>
        <field name="model">sale.order</field>
        <field name="inherit_id" ref="sale.view_order_form" />
        <field name="arch" type="xml">
            <group name="sales_person" position="inside">
                <field name="priority" readonly="state == 'cancel' or locked" />
            </group>
            <xpath
                expr="//field[@name='order_line']//form//field[@name='price_unit']"
                position="after"
            >
                <field name="priority" />
            </xpath>

            <xpath
                expr="//field[@name='order_line']//list//field[@name='price_unit']"
                position="after"
            >
                <field name="priority" />
            </xpath>
        </field>
    </record>
</odoo>
