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

    <record id="view_order_form_inherit" model="ir.ui.view">
        <field name="name">sale.order.form.inherit</field>
        <field name="model">sale.order</field>
        <field name="inherit_id" ref="sale.view_order_form"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='order_line']/tree" position="inside">
                <field name="core_line_id" invisible="1"/>
            </xpath>
            <xpath expr="//field[@name='order_line']/form//field[@name='product_id']" position="after">
                <field name="core_line_id" readonly="1" force_save="1"/>
            </xpath>
            <xpath expr="//field[@name='order_line']/kanban/field[@name='product_id']" position="after">
                <field name="core_line_id"/>
            </xpath>
        </field>
    </record>

</odoo>
