OCA/server-tools

View on GitHub
base_name_search_improved/views/ir_model.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<!-- © 2016 Daniel Reis
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<openerp>
<data>

<record id="view_model_form" model="ir.ui.view">
    <field name="name">Add Name Searchable to Models</field>
    <field name="model">ir.model</field>
    <field name="inherit_id" ref="base.view_model_form"/>
    <field name="arch" type="xml">

        <field name="state" position="after">
            <field name="name_search_ids"
                   widget="many2many_tags"
                   domain="[('model_id', '=', id)]"
                />
            <field name="name_search_use_standard" />
        </field>

    </field>
</record>

</data>
</openerp>