<!-- Copyright 2019 Open Source Integrators
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="stock_scrap_form_reason_code" model="ir.ui.view">
        <field name="name">stock.scrap.form.reason.code</field>
        <field name="model">stock.scrap</field>
        <field name="inherit_id" ref="stock.stock_scrap_form_view" />
        <field name="arch" type="xml">
            <xpath expr="//group/group" position='inside'>
                <field name="reason_code_id" />
            </xpath>
        </field>
    </record>
    <record id="stock_scrap_tree_reason_code" model="ir.ui.view">
        <field name="name">stock.scrap.tree.reason.code</field>
        <field name="model">stock.scrap</field>
        <field name="inherit_id" ref="stock.stock_scrap_tree_view" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='product_uom_id']" position='after'>
                <field name="reason_code_id" />
            </xpath>
        </field>
    </record>
    <record id="stock_scrap_form2_reason_code" model="ir.ui.view">
        <field name="name">stock.scrap.form2.reason.code</field>
        <field name="model">stock.scrap</field>
        <field name="inherit_id" ref="stock.stock_scrap_form_view2" />
        <field name="arch" type="xml">
            <xpath expr="//group/group" position='inside'>
                <field name="reason_code_id" />
            </xpath>
        </field>
    </record>
</odoo>
