<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="app_purchase_order_form" model="ir.ui.view">
            <field name="name">app.purchase.order.form</field>
            <field name="model">purchase.order</field>
            <field name="inherit_id" ref="purchase.purchase_order_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='order_line']//tree//field[@name='product_id']" position="after">
                    <field name="product_supplier_code"/>
                </xpath>
            </field>
        </record>

        <record id="app_purchase_order_line_tree" model="ir.ui.view">
            <field name="name">app.purchase.order.line.tree</field>
            <field name="model">purchase.order.line</field>
            <field name="inherit_id" ref="purchase.purchase_order_line_tree"/>
            <field name="arch" type="xml">
                <field name="product_id" position="after">
                    <field name="product_supplier_code"/>
                </field>
            </field>
        </record>
    </data>
</odoo>
