<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!-- Properties -->
        <record id="ir_property_view_search" model="ir.ui.view">
            <field name="name">ir.property.search</field>
            <field name="model">ir.property</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Parameters">
                    <filter icon="terp-project"
                        string="Generic"
                        help="Parameters that are used by all resources."
                        domain="[('res_id','=',False)]"/>
                    <separator orientation="vertical"/>
                    <field name="name"/>
                    <field name="company_id" groups="base.group_multi_company"/>
                </search>
            </field>
        </record>
        <record id="ir_property_view" model="ir.ui.view">
            <field name="name">ir.property.form</field>
            <field name="model">ir.property</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Parameters">
                    <separator colspan="4" string="Property"/>
                    <field name="name" select="1"/>
                    <field name="company_id" select="1" groups="base.group_multi_company"/>
                    <separator colspan="4" string="Field Information"/>
                    <field colspan="4" name="fields_id" select="1"/>
                    <field colspan="4" name="type"/>
                    <group colspan="4" attrs="{'invisible' : [('type', 'not in', ('integer', 'integer_big', 'boolean'))]}">
                        <field colspan="4" name="value_integer" widget="integer"/>
                    </group>
                    <group colspan="4" attrs="{'invisible' : [('type', '!=', 'float')]}">
                        <field colspan="4" name="value_float" />
                    </group>
                    <group colspan="4" attrs="{'invisible' : [('type', 'not in', ('date', 'datetime'))]}">
                        <field colspan="4" name="value_datetime" />
                    </group>
                    <group colspan="4" attrs="{'invisible' : [('type', 'not in', ('char', 'text'))]}">
                        <field colspan="4" name="value_text" />
                    </group>
                    <group colspan="4" attrs="{'invisible' : [('type', '!=', 'many2one')]}">
                        <field colspan="4" name="value_reference" />
                    </group>
                    <group colspan="4" attrs="{'invisible' : [('type', '!=', 'binary')]}">
                        <field colspan="4" name="value_binary" />
                    </group>
                    <separator colspan="4" string="Resource"/>
                    <field colspan="4" name="res_id" groups="base.group_extended"/>
                </form>
            </field>
        </record>
        <record id="ir_property_view_tree" model="ir.ui.view">
            <field name="name">ir.property.tree</field>
            <field name="model">ir.property</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Parameters">
                    <field name="name"/>
                    <field name="company_id" groups="base.group_multi_company"/>
                    <field name="fields_id"/>
                </tree>
            </field>
        </record>
        <record id="ir_property_form" model="ir.actions.act_window">
            <field name="name">Configuration Parameters</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.property</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="ir_property_view_tree"/>
        </record>
        <menuitem id="next_id_15" name="Parameters" parent="base.menu_config" groups="base.group_extended" />
        <menuitem action="ir_property_form" id="menu_ir_property_form_all" parent="base.next_id_15"/>
    </data>
</openerp>
