<?xml version="1.0" encoding="utf-8" ?>
<odoo>

    <record model="ir.ui.view" id="view_picking_form">
        <field name="name">view.picking.form (in stock_move_priority_manage)</field>
        <field name="model">stock.picking</field>
        <field name="inherit_id" ref="stock.view_picking_form" />
        <field name="arch" type="xml">
            <xpath
                expr="//field[@name='move_ids_without_package']/tree"
                position="inside"
            >
                <field name="is_priority_editable" invisible="1" />
                <field
                    name="priority"
                    attrs="{'readonly': [('is_priority_editable', '=', False)]}"
                    decoration-info="priority == '0'"
                    decoration-warning="priority == '1'"
                    optional="show"
                    groups="stock_move_manage_priority.group_stock_move_priority_manager"
                />
            </xpath>
        </field>
    </record>

</odoo>
