<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="view_view_form_inherit_view" model="ir.ui.view">
        <field name="name">ir.ui.view.form.inherit</field>
        <field name="model">ir.ui.view</field>
        <field name="inherit_id" ref="base.view_view_form"/>
        <field name="arch" type="xml">
        	<xpath expr="//sheet/div[hasclass('alert-info')]" position="after">
                <div class="alert alert-danger" role="alert" invisible="not invalid_locators">
                    Please note that your view includes invalid locators.<br/>
                    These nodes could not be anchored to the parent view and have no effect.<br/>
                    This issue may have arisen as a result of manual modifications or during the upgrade process.<br/>
                    For your reference, invalid xpath nodes are highlighted in red.
                </div>
                <field name="invalid_locators" invisible="1"/> <!-- required for the alert -->
            </xpath>
            <xpath expr="//field[@name='arch_base']" position="attributes">
                <attribute name="widget">code_ir_ui_view</attribute>
            </xpath>
        </field>
    </record>
</odoo>
