<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <!-- Values -->
        
        <record id="values_view_form" model="ir.ui.view">
            <field name="name">ir.values.form</field>
            <field name="model">ir.values</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Values">
                    <field name="name" select="1"/>
                    <field name="model" select="1"/>
                    <field name="key" select="1"/>
                    <field name="key2" select="2"/>
                    <field name="object" select="2"/>
                    <field name="res_id"/>
                    <field name="user_id" select="2"/>
                    <field name="company_id" select="2"/>
                    <field name="value_unpickle"/>
                    <field name="meta_unpickle"/>
                </form>
            </field>
        </record>
        
        <record id="values_view_tree" model="ir.ui.view">
            <field name="name">ir.values.tree</field>
            <field name="model">ir.values</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Values">
                    <field name="name"/>
                    <field name="model"/>
                    <field name="key"/>
                    <field name="key2"/>
                    <field name="user_id"/>
                    <field name="company_id"/>
                </tree>
            </field>
        </record>
        
        <record id="act_values_form" model="ir.actions.act_window">
            <field name="name">Values</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.values</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="values_view_tree"/>
        </record>
        
		<menuitem id="next_id_4" name="Low Level" parent="menu_custom"/>
		<menuitem action="act_values_form" id="menu_values_form" parent="next_id_4"/>
        
        <!-- Sequences -->
        
        <record id="sequence_view" model="ir.ui.view">
            <field name="name">ir.sequence.form</field>
            <field name="model">ir.sequence</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Sequences">
                    <separator colspan="4" string="Configuration"/>
                    <field colspan="4" name="name" select="1"/>
                    <field name="code" select="1"/>
                    <field name="active" select="1"/>
                    <field name="prefix"/>
                    <field name="suffix"/>
                    <field name="padding"/>
                    <field name="number_increment"/>
                    <field name="number_next"/>
                    <separator colspan="4" string="Legend (for prefix, suffix)"/>
                    <label colspan="4" string="Year: %%(year)s"/>
                    <label colspan="4" string="Month: %%(month)s"/>
                    <label colspan="4" string="Day: %%(day)s"/>
                </form>
            </field>
        </record>
        <record id="sequence_view_tree" model="ir.ui.view">
            <field name="name">ir.sequence.tree</field>
            <field name="model">ir.sequence</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Sequences">
                    <field name="name"/>
                    <field name="code"/>
                    <field name="active"/>
                </tree>
            </field>
        </record>
        
        <record id="ir_sequence_form" model="ir.actions.act_window">
            <field name="name">Sequences</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.sequence</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="sequence_view_tree"/>
            <field name="context">{'active_test': False}</field>
        </record>
        <menuitem id="next_id_5" name="Sequences" parent="base.menu_custom"/><menuitem action="ir_sequence_form" id="menu_ir_sequence_form" parent="next_id_5"/>
        
        <!-- Sequences Types -->
        
        <record id="sequence_type_form_view" model="ir.ui.view">
            <field name="name">ir.sequence.type.form</field>
            <field name="model">ir.sequence.type</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Sequence Type">
                    <field name="name" select="1"/>
                    <field name="code" readonly="1"/>
                </form>
            </field>
        </record>
        	
        <record id="ir_sequence_type" model="ir.actions.act_window">
            <field name="name">Sequence Types</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.sequence.type</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field eval="False" name="view_id"/>
        </record>
        <menuitem action="ir_sequence_type" id="menu_ir_sequence_type" parent="base.next_id_5"/>
        
        <!-- Actions -->
        
        <record id="action_view" model="ir.ui.view">
            <field name="name">ir.actions.actions</field>
            <field name="model">ir.actions.actions</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Action">
                    <field name="name" select="1"/>
                    <field name="type" select="1"/>
                    <field name="usage"/>
                </form>
            </field>
        </record>
        <record id="action_view_tree" model="ir.ui.view">
            <field name="name">ir.actions.actions.tree</field>
            <field name="model">ir.actions.actions</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Action">
                    <field name="name"/>
                    <field name="type"/>
                </tree>
            </field>
        </record>
        
        <record id="ir_sequence_actions" model="ir.actions.act_window">
            <field name="name">Actions</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.actions.actions</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="action_view_tree"/>
        </record>
        <menuitem id="next_id_6" name="Actions" parent="base.next_id_4"/><menuitem action="ir_sequence_actions" id="menu_ir_sequence_actions" parent="next_id_6"/>
        
        <record id="act_report_custom_view" model="ir.ui.view">
            <field name="name">ir.actions.report.custom</field>
            <field name="model">ir.actions.report.custom</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Report custom">
                    <field name="name" select="1"/>
                    <field name="type" select="1"/>
                    <field name="report_id"/>
                    <field name="usage"/>
                </form>
            </field>
        </record>
        <record id="act_report_custom_view_tree" model="ir.ui.view">
            <field name="name">ir.actions.report.custom.tree</field>
            <field name="model">ir.actions.report.custom</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Report custom">
                    <field name="name"/>
                    <field name="type"/>
                </tree>
            </field>
        </record>
        
        <record id="ir_action_report_custom" model="ir.actions.act_window">
            <field name="name">Report Custom</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.actions.report.custom</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="act_report_custom_view_tree"/>
        </record>
        <menuitem action="ir_action_report_custom" id="menu_ir_action_report_custom" parent="base.next_id_6"/>
        
        <record id="act_report_xml_view" model="ir.ui.view">
            <field name="name">ir.actions.report.xml</field>
            <field name="model">ir.actions.report.xml</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Report xml">
                    <field name="name" select="1"/>
                    <field name="type" select="1"/>
                    <field name="report_name" select="1"/>
                    <field name="report_xsl"/>
                    <field name="report_xml"/>
                    <field name="report_rml"/>
                    <field name="auto"/>
                    <field name="usage"/>
                    <field name="header"/>
                    <field name="report_type"/>
                    <field colspan="4" name="groups_id"/>
                </form>
            </field>
        </record>
        <record id="act_report_xml_view_tree" model="ir.ui.view">
            <field name="name">ir.actions.report.xml.tree</field>
            <field name="model">ir.actions.report.xml</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Report xml">
                    <field name="name"/>
                    <field name="type"/>
                    <field name="report_name"/>
                </tree>
            </field>
        </record>
        
        <record id="ir_action_report_xml" model="ir.actions.act_window">
            <field name="name">Report Xml</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.actions.report.xml</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="act_report_xml_view_tree"/>
        </record>
        <menuitem action="ir_action_report_xml" id="menu_ir_action_report_xml" parent="base.next_id_6"/>
        
        <record id="view_window_action_tree" model="ir.ui.view">
            <field name="name">ir.actions.windows.tree</field>
            <field name="model">ir.actions.act_window</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Open Window">
                    <field name="name"/>
                    <field name="res_model"/>
                    <field name="view_type"/>
                    <field name="view_id"/>
                    <field name="domain"/>
                </tree>
            </field>
        </record>
        
        <record id="view_window_action_form" model="ir.ui.view">
            <field name="name">ir.actions.windows.form</field>
            <field name="model">ir.actions.act_window</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Open a Window">
                    <field name="name" select="1"/>
                    <field name="type" readonly="1"/>
                    <field name="res_model" select="1"/>
                    <field name="src_model" select="2"/>
                    <field name="usage"/>
                    <field name="view_type"/>
                    <field colspan="4" name="view_ids">
                        <form string="Views">
                            <field colspan="4" name="sequence"/>
                            <field name="view_mode"/>
                            <field domain="[('type', '=', view_mode)]" name="view_id"/>
                        </form>
                        <tree string="Views">
                            <field name="sequence"/>
                            <field name="view_mode"/>
                            <field name="view_id"/>
                        </tree>
                    </field>
                    <field colspan="4" name="domain"/>
                    <field name="limit"/>
                    <field name="auto_refresh"/>
                    <newline/>
                    <field name="view_mode"/>
                    <field name="view_id"/>
                </form>
            </field>
        </record>
        <record id="ir_action_window" model="ir.actions.act_window">
            <field name="name">Window Actions</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.actions.act_window</field>
            <field name="view_type">form</field>
        </record>
        <record id="ir_action_window_view1" model="ir.actions.act_window.view">
            <field eval="1" name="sequence"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="view_window_action_tree"/>
            <field name="act_window_id" ref="ir_action_window"/>
        </record>
        <record id="ir_action_window_view2" model="ir.actions.act_window.view">
            <field eval="2" name="sequence"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_window_action_form"/>
            <field name="act_window_id" ref="ir_action_window"/>
        </record>
        <menuitem action="ir_action_window" id="menu_ir_action_window" parent="base.next_id_6"/>
        
        <record id="act_wizard_view" model="ir.ui.view">
            <field name="name">ir.actions.wizard</field>
            <field name="model">ir.actions.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Wizard">
                    <field name="name" select="1"/>
                    <field name="type" select="1"/>
                    <field name="wiz_name" select="1"/>
                    <field name="multi"/>
                    <field colspan="4" name="groups_id"/>
                </form>
            </field>
        </record>
        
        <record id="ir_action_wizard" model="ir.actions.act_window">
            <field name="name">Wizard</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.actions.wizard</field>
            <field name="view_type">form</field>
        </record>
        
        <menuitem action="ir_action_wizard" id="menu_ir_action_wizard" parent="base.next_id_6"/>
        
        <!-- Companies -->
        <record id="action_res_company_tree" model="ir.actions.act_window">
            <field name="name">Company's Structure</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">res.company</field>
            <field name="domain">[('parent_id','=',False)]</field>
            <field name="view_type">tree</field>
        </record>
        <menuitem action="action_res_company_tree" id="menu_action_res_company_tree" parent="base.menu_users" sequence="16"/>
        
        <record id="action_res_company_form" model="ir.actions.act_window">
            <field name="name">Companies</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">res.company</field>
            <field name="view_type">form</field>
        </record>
        <menuitem action="action_res_company_form" id="menu_action_res_company_form" parent="menu_action_res_company_tree"/>
        
        <!-- User Roles -->
        <record id="action_res_users" model="ir.actions.act_window">
            <field name="name">Users</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">res.users</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_users_tree"/>
        </record>
        <record id="action_res_users_view1" model="ir.actions.act_window.view">
            <field eval="10" name="sequence"/>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="view_users_tree"/>
            <field name="act_window_id" ref="action_res_users"/>
        </record>
        <record id="action_res_users_view2" model="ir.actions.act_window.view">
            <field eval="20" name="sequence"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_users_form"/>
            <field name="act_window_id" ref="action_res_users"/>
        </record>
        
        <menuitem action="action_res_users" id="menu_action_res_users" parent="base.menu_users"/>
        
        <record id="action_res_users_my" model="ir.actions.act_window">
            <field name="name">Change My Preferences</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">res.users</field>
            <field name="view_type">form</field>
            <field name="view_mode">form,tree</field>
            <field name="domain">[('id','=',uid)]</field>
        </record>
        <record id="action_res_users_my_view1" model="ir.actions.act_window.view">
            <field eval="20" name="sequence"/>
            <field name="view_mode">tree</field>
            <field name="act_window_id" ref="action_res_users_my"/>
        </record>
        <record id="action_res_users_my_view2" model="ir.actions.act_window.view">
            <field eval="10" name="sequence"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_users_form_simple_modif"/>
            <field name="act_window_id" ref="action_res_users_my"/>
        </record>
        
        <record id="action_res_groups" model="ir.actions.act_window">
            <field name="name">Groups</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">res.groups</field>
            <field name="view_type">form</field>
        </record>
        <menuitem action="action_res_groups" id="menu_action_res_groups" parent="base.menu_users"/>
        
        <record id="view_roles_form" model="ir.ui.view">
            <field name="name">res.roles.form</field>
            <field name="model">res.roles</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Role">
                    <field colspan="4" name="name" select="1"/>
                    <field colspan="4" name="parent_id"/>
                </form>
            </field>
        </record>
        <record id="view_roles_tree" model="ir.ui.view">
            <field name="name">res.roles.tree</field>
            <field name="model">res.roles</field>
            <field name="type">tree</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree string="Roles">
                    <field name="name"/>
                </tree>
            </field>
        </record>
        <record id="action_res_roles" model="ir.actions.act_window">
            <field name="name">Roles Structure</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">res.roles</field>
            <field name="view_type">tree</field>
            <field eval="[('parent_id','=',False)]" name="domain"/>
        </record>
        <menuitem action="action_res_roles" id="menu_action_res_roles" parent="base.menu_users"/>
        
        <record id="action_res_roles_form" model="ir.actions.act_window">
            <field name="name">Roles</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">res.roles</field>
            <field name="view_type">form</field>
        </record>
        <menuitem action="action_res_roles_form" id="menu_action_res_roles_form" parent="menu_action_res_roles"/>
        
        <!-- View -->
        <record id="view_view_form" model="ir.ui.view">
            <field name="name">ir.ui.view</field>
            <field name="model">ir.ui.view</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="User Interface - Views">
                    <field name="name" select="1"/>
                    <field name="type" select="1"/>
                    <field name="model" select="1"/>
                    <field name="field_parent"/>
                    <field name="priority"/>
                    <field name="inherit_id"/>
                    <field colspan="4" name="arch"/>
                </form>
            </field>
        </record>
        <record id="view_view_tree" model="ir.ui.view">
            <field name="name">ir.ui.view.tree</field>
            <field name="model">ir.ui.view</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree>
                    <field name="name"/>
                    <field name="type"/>
                    <field name="model"/>
                </tree>
            </field>
        </record>
        <record id="action_ui_view" model="ir.actions.act_window">
            <field name="name">View</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.ui.view</field>
            <field name="view_id" ref="view_view_tree"/>
        </record>
        <menuitem action="action_ui_view" id="menu_action_ui_view" parent="base.next_id_2"/>
        
        <!-- Attachment -->
        <record id="view_attachment_form" model="ir.ui.view">
            <field name="name">ir.attachment.view</field>
            <field name="model">ir.attachment</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Attachments">
                    <field colspan="4" name="name" select="1"/>
                    <field colspan="4" name="datas"/>
                    <field name="datas_fname"/>
                    <newline/>
                    <field name="res_model" select="1"/>
                    <field name="res_id"/>
                    <separator colspan="4" string="Description"/>
                    <field colspan="4" name="description" nolabel="1"/>
                </form>
            </field>
        </record>
        <record id="view_attachment_tree" model="ir.ui.view">
            <field name="name">ir.attachment.view.tree</field>
            <field name="model">ir.attachment</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Attachments">
                    <field name="name"/>
                    <field name="res_model"/>
                    <field name="res_id"/>
                </tree>
            </field>
        </record>
        
        <record id="action_attachment" model="ir.actions.act_window">
            <field name="name">Attachments</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.attachment</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_attachment_tree"/>
        </record>
        <menuitem action="action_attachment" id="menu_action_attachment" parent="base.next_id_4"/>
        
        <!-- Report -->       
        <record id="view_report_custom_fields_tree" model="ir.ui.view">
            <field name="name">ir.report.custom.fields.tree</field>
            <field name="model">ir.report.custom.fields</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Report Fields">
                    <field name="sequence"/>
                    <field name="name"/>
                    <field name="width"/>
                    <field name="field_child0"/>
                    <field name="field_child1"/>
                    <field name="field_child2"/>
                    <field name="field_child3"/>
                </tree>
            </field>
        </record>
        
        <record id="view_report_custom_fields_form" model="ir.ui.view">
            <field name="name">ir.report.custom.fields</field>
            <field name="model">ir.report.custom.fields</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Report Fields">
                    <field name="name"/>
                    <field name="alignment"/>
                    <field name="width"/>
                    <field name="sequence"/>
                    <newline/>
                    <field name="bgcolor"/>
                    <field name="fontcolor"/>
                    <newline/>
                    <field name="operation"/>
                    <field name="groupby"/>
                    <field name="cumulate"/>
                    <newline/>
                    <field domain="[('model_id','=',parent['model_id'])]" name="field_child0" on_change="onchange_field_child0(field_child0)"/>
                    <field domain="[('model_id','=',parent['model_id'])]" name="fc0_operande"/>
                    <field name="fc0_op"/>
                    <field name="fc0_condition"/>
                    <newline/>
                    <field name="field_child1" on_change="onchange_field_child1(field_child1)"/>
                    <field name="fc1_operande"/>
                    <field name="fc1_op"/>
                    <field name="fc1_condition"/>
                    <newline/>
                    <field name="field_child2" on_change="onchange_field_child2(field_child2)"/>
                    <field name="fc2_operande"/>
                    <field name="fc2_op"/>
                    <field name="fc2_condition"/>
                    <newline/>
                    <field name="field_child3"/>
                    <field name="fc3_operande"/>
                    <field name="fc3_op"/>
                    <field name="fc3_condition"/>
                    
                </form>
            </field>
        </record>
        
        <record id="view_report_custom_form" model="ir.ui.view">
            <field name="name">ir.report.custom</field>
            <field name="model">ir.report.custom</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Custom Report">
                    <field name="name" select="1"/>
                    <field name="model_id" on_change="onchange_model_id(model_id)" select="1"/>
                    <field name="title"/>
                    <field name="type"/>
                    <field name="print_format"/>
                    <field name="print_orientation"/>
                    <field name="repeat_header"/>
                    <field name="footer"/>
                    <field name="sortby"/>
                    <field name="field_parent"/>
                    <field name="frequency"/>
                    <field name="limitt"/>
                    <field name="menu_id"/>
                    <field colspan="4" name="fields_child0" widget="one2many_list"/>
                    <field name="state" readonly="1" select="1"/>
                    <group col="2" colspan="2">
                        <button name="subscribe" states="unsubscribed" string="Subscribe Report" type="object"/>
                        <button name="unsubscribe" states="subscribed" string="Unsubscribe Report" type="object"/>
                    </group>
                </form>
            </field>
        </record>
        <record id="action_report_custom" model="ir.actions.act_window">
            <field name="name">Custom Report</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.report.custom</field>
            <field name="view_type">tree</field>
            <field name="view_id" ref="view_report_custom_form"/>
        </record>
        <!--
	<menuitem name="Administration/Report/Report Custom" action="action_report_custom"/>
	-->
        
        <!-- model -->
        <record id="view_model_form" model="ir.ui.view">
            <field name="name">ir.model.form</field>
            <field name="model">ir.model</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Model Description">
                    <notebook>
                        <page string="Object">
                            <field name="name" select="1"/>
                            <field name="model" select="1"/>
                            <separator colspan="4" string="Fields"/>
                            <field colspan="4" context="{'manual':True}" name="field_id" nolabel="1">
                                <tree string="Fields Description">
                                    <field name="name"/>
                                    <field name="field_description"/>
                                    <field name="ttype"/>
                                    <field name="required"/>
                                    <field name="readonly"/>
                                    <field name="select_level"/>
                                    <field name="state"/>
                                </tree>
                                <form string="Fields Description">
                                    <field name="name" select="1"/>
                                    <field colspan="4" name="field_description" select="1"/>
                                    <field name="ttype" select="1"/>
                                    <field name="relation" select="1"/>
                                    
                                    <field name="required" select="2"/>
                                    <field name="readonly" select="2"/>
                                    
                                    <field name="size" select="1"/>
                                    <field name="on_delete" select="1"/>
                                    <field name="select_level" select="2"/>
                                    <field name="translate"/>
                                    <field name="selection"/>
                                    <field name="domain"/>
                                    <field name="state" readonly="1"/>
                                </form>
                            </field>
                            <separator colspan="4" string="Status"/>
                            <field name="state"/>
                            <group col="2" colspan="2">
                                <button colspan="2" name="%(act_menu_create)d" string="Create a Menu" type="action"/>
                            </group>
                        </page>
                        <page string="Information">
                            <field colspan="4" name="info" nolabel="1" select="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>
        
        
        <record id="view_model_tree" model="ir.ui.view">
            <field name="name">ir.model.tree</field>
            <field name="model">ir.model</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Model Description">
                    <field name="name"/>
                    <field name="model"/>
                </tree>
            </field>
        </record>
        
        
        <!-- fields_description -->
        <record id="view_model_fields_form" model="ir.ui.view">
            <field name="name">ir.model.fields.form</field>
            <field name="model">ir.model.fields</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Fields">
                    <field name="name" select="1"/>
                    <field name="model_id" readonly="1"/>
                    <field colspan="4" name="field_description" select="2"/>
                    <field name="ttype" select="2"/>
                    <field name="relation" select="2"/>
                    
                    <field name="required" select="2"/>
                    <field name="readonly" select="2"/>
                    
                    <field name="size" select="1"/>
                    <field name="on_delete" select="1"/>
                    <field name="select_level" select="2"/>
                    <field name="translate"/>
                    <field name="selection"/>
                    <field name="domain"/>
                    <field name="state" readonly="1"/>
                </form>
            </field>
        </record>
        
        
        <record id="view_model_fields_tree" model="ir.ui.view">
            <field name="name">ir.model.fields.tree</field>
            <field name="model">ir.model.fields</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Fields">
                    <field name="name"/>
                    <field name="field_description"/>
                </tree>
            </field>
        </record>
        
        <record id="action_model_model" model="ir.actions.act_window">
            <field name="name">Objects</field>
            <field name="res_model">ir.model</field>
            <field name="view_type">form</field>
            <field name="context">{'manual':True}</field>
            <field name="view_id" ref="view_model_tree"/>
        </record>
        <menuitem id="next_id_9" name="Database Structure" parent="base.menu_custom"/>
		<menuitem action="action_model_model" id="ir_model_model_menu" parent="next_id_9"/>
        
        <record id="action_model_fields" model="ir.actions.act_window">
            <field name="name">Fields</field>
            <field name="res_model">ir.model.fields</field>
            <field name="view_type">form</field>
            <field name="context">{'manual':True}</field>
            <field name="view_id" ref="view_model_fields_tree"/>
        </record>
        <menuitem action="action_model_fields" id="ir_model_model_fields" parent="base.next_id_9"/>
        
        <!-- Translations -->
        
        <record id="view_translation_form" model="ir.ui.view">
            <field name="name">Translations</field>
            <field name="model">ir.translation</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Translations">
                    <field name="name" select="2"/>
                    <field name="res_id" select="2"/>
                    <field name="type" select="2"/>
                    <field name="lang" select="1"/>
                    <field name="src" select="1"/>
                    <field name="value" select="1"/>
                </form>
            </field>
        </record>
        <record id="view_translation_tree" model="ir.ui.view">
            <field name="name">Translations</field>
            <field name="model">ir.translation</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree editable="bottom" string="Translations">
                    <field name="src"/>
                    <field name="value"/>
                    <field name="name"/>
                    <field name="lang"/>
                    <field name="type"/>
                </tree>
            </field>
        </record>
        
        <record id="action_translation" model="ir.actions.act_window">
            <field name="name">All terms</field>
            <field name="res_model">ir.translation</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_translation_tree"/>
        </record>
        <menuitem action="action_translation" id="menu_action_translation" parent="base.menu_translation"/>
        
        <!--
	=============================================================
	Menu Edition
	=============================================================
	-->
        
        <record id="shortcut_form" model="ir.ui.view">
            <field name="name">ir.ui.view_sc</field>
            <field name="model">ir.ui.view_sc</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Shortcut">
                    <field colspan="4" name="name" select="1"/>
                    <field name="sequence"/>
                </form>
            </field>
        </record>
        <record id="shortcut_tree" model="ir.ui.view">
            <field name="name">ir.ui.view_sc</field>
            <field name="model">ir.ui.view_sc</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Shortcut">
                    <field name="name"/>
                    <field name="sequence"/>
                </tree>
            </field>
        </record>
        
        <record id="edit_menu" model="ir.ui.view">
            <field name="name">ir.ui.menu.tree</field>
            <field name="model">ir.ui.menu</field>
            <field name="type">tree</field>
            <field eval="8" name="priority"/>
            <field name="arch" type="xml">
                <tree string="Menu">
                    <field icon="icon" name="complete_name"/>
                </tree>
            </field>
        </record>
        
        <record id="edit_menu_access" model="ir.ui.view">
            <field name="name">ir.ui.menu.form2</field>
            <field name="model">ir.ui.menu</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Menu">
                    <field name="complete_name"/>
                    <field name="name" select="1"/>
                    <field name="sequence"/>
                    <field colspan="4" name="parent_id" select="1"/>
                    <field name="action"/>
                    <field colspan="4" name="groups_id"/>
                    <field name="icon"/>
                </form>
            </field>
        </record>
        <record id="grant_menu_access" model="ir.actions.act_window">
            <field name="name">Grant access to menu</field>
            <field name="res_model">ir.ui.menu</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="edit_menu"/>
        </record>
        <menuitem action="grant_menu_access" id="menu_grant_menu_access" parent="base.menu_security"/>
        
        <!--
	=============================================================
	Cron Jobs
	=============================================================
	-->
        <record id="ir_cron_view_tree" model="ir.ui.view">
            <field name="name">ir.cron.tree</field>
            <field name="model">ir.cron</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Scheduled Actions">
                    <field name="nextcall"/>
                    <field name="name"/>
                    <field name="interval_number"/>
                    <field name="interval_type"/>
                    <field name="numbercall"/>
                </tree>
            </field>
        </record>
        	<record id="ir_cron_view" model="ir.ui.view">
            <field name="name">ir.cron.form</field>
            <field name="model">ir.cron</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Scheduled Actions">
                    <field name="name" select="1"/>
                    <field name="active" select="1"/>
                    <field name="user_id" select="1"/>
                    <field name="priority" select="1"/>
                    <newline/>
                    <field name="interval_number"/>
                    <field name="interval_type"/>
                    <newline/>
                    <field name="nextcall"/>
                    <field name="numbercall"/>
                    <field name="doall"/>
                    <separator colspan="4" string="Action to trigger"/>
                    <newline/>
                    <field name="model" readonly="1"/>
                    <field name="function" readonly="1"/>
                    <field colspan="4" name="args" readonly="1"/>
                </form>
            </field>
        </record>
        <record id="ir_cron_act" model="ir.actions.act_window">
            <field name="name">Scheduled Actions</field>
            <field name="res_model">ir.cron</field>
            <field name="view_type">form</field>
            <field name="context">{'active_test': False}</field>
            <field name="view_id" ref="ir_cron_view_tree"/>
        </record>
        <menuitem id="next_id_10" name="Scheduler" parent="base.menu_custom"/><menuitem action="ir_cron_act" id="menu_ir_cron_act" parent="next_id_10"/>
        
        
        <record id="ir_access_view_tree" model="ir.ui.view">
            <field name="name">ir.model.access.tree</field>
            <field name="model">ir.model.access</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Access controls">
                    <field name="name"/>
                    <field name="model_id"/>
                    <field name="group_id"/>
                    <field name="perm_read"/>
                    <field name="perm_write"/>
                    <field name="perm_create"/>
                    <field name="perm_unlink"/>
                </tree>
            </field>
        </record>
        <record id="ir_access_view_form" model="ir.ui.view">
            <field name="name">ir.model.access.form</field>
            <field name="model">ir.model.access</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Access controls">
                    <field colspan="4" name="name" select="1"/>
                    <field name="model_id" select="1"/>
                    <field name="group_id" select="1"/>
                    <newline/>
                    <field name="perm_read"/>
                    <field name="perm_write"/>
                    <field name="perm_create"/>
                    <field name="perm_unlink"/>
                </form>
            </field>
        </record>
        <record id="ir_access_act" model="ir.actions.act_window">
            <field name="name">Access controls</field>
            <field name="res_model">ir.model.access</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="ir_access_view_tree"/>
        </record>
        <menuitem action="ir_access_act" id="menu_ir_access_act" parent="base.menu_security"/>

        <!-- Rules -->
        
        <record id="view_rule_group_form" model="ir.ui.view">
            <field name="name">Record rules</field>
            <field name="model">ir.rule.group</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Record rules">
                    <field name="model_id"/>
                    <field name="global"/>
                    <field colspan="4" name="name"/>
                    <group col="6" colspan="4" expand="1">
                        <field colspan="6" name="rules" nolabel="1"/>
                        <label align="0.0" colspan="6" string="The rule is satisfied if all test are True (AND)"/>
                        <label align="0.0" colspan="6" string="Multiple rules on same objects are joined using operator OR"/>
                    </group>
                </form>
            </field>
        </record>
        <record id="view_rule_group_tree" model="ir.ui.view">
            <field name="name">Record rules</field>
            <field name="model">ir.rule.group</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Record rules">
                    <field name="model_id"/>
                    <field name="name"/>
                    <field name="global"/>
                </tree>
            </field>
        </record>
        
        <record id="view_rule_form" model="ir.ui.view">
            <field name="name">Rule Definition</field>
            <field name="model">ir.rule</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Test">
                    <separator colspan="4" string="Simple domain setup"/>
                    <group col="6" colspan="4">
                        <field name="field_id"/>
                        <field name="operator"/>
                        <field name="operand"/>
                    </group>
                    <separator colspan="4" string="Manual domain setup"/>
                    <field name="domain_force"/>
                    <label colspan="4" string="If you don't force the domain, it will use the simple domain setup"/>
                </form>
            </field>
        </record>
        
        <record id="view_rule_tree" model="ir.ui.view">
            <field name="name">Rules</field>
            <field name="model">ir.rule</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Test">
                    <field name="domain"/>
                </tree>
            </field>
        </record>
        <record id="action_rule" model="ir.actions.act_window">
            <field name="name">Record Rules</field>
            <field name="res_model">ir.rule.group</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_rule_group_tree"/>
        </record>
        <menuitem action="action_rule" id="menu_action_rule" parent="base.menu_security"/>
        
        <record id="property_rule_group" model="ir.rule.group">
            <field name="name">Property multi-company</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'ir.property')]"/>
            <field eval="True" name="global"/>
        </record>
        <record id="property_rule_group2" model="ir.rule.group">
            <field name="name">Property multi-company 2</field>
            <field model="ir.model" name="model_id" search="[('model', '=', 'ir.property')]"/>
            <field eval="True" name="global"/>
        </record>
        <record id="property_rule" model="ir.rule">
            <field model="ir.model.fields" name="field_id" search="[('model', '=', 'ir.property'), ('name', '=', 'company_id')]"/>
            <field name="operator">child_of</field>
            <field name="operand">user.company_id.id</field>
            <field name="rule_group" ref="property_rule_group"/>
        </record>
        <record id="property_rule_bis" model="ir.rule">
            <field model="ir.model.fields" name="field_id" search="[('model', '=', 'ir.property'), ('name', '=', 'company_id')]"/>
            <field name="operator">=</field>
            <field name="operand">False</field>
            <field name="rule_group" ref="property_rule_group2"/>
        </record>
        
        <!--server action view-->
        
        <record id="view_server_action_form" model="ir.ui.view">
            <field name="name">Server Action</field>
            <field name="model">ir.actions.server</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Server Action">
                    <field name="name" select="1"/>
                    <field name="state" select="1"/>
                    <field name="model_id" select="1"/>
                    <field name="sequence" select="2"/>
                    <field name="code" colspan="4"/>
                    <field name="trigger_name" select="2"/>
                    <field name="trigger_object" select="2"/>
                    <field name="trigger_object_id"/>
                    <field name="message" select="2" colspan="4"/>
                    <field name="address" select="2"/>
                    <field name="child_ids" colspan="4"/>
                    <field name="usage"/>
                    <field name="type"/>
                </form>
            </field>
        </record>
        
        <record id="view_server_action_tree" model="ir.ui.view">
            <field name="name">Server Actions</field>
            <field name="model">ir.actions.server</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Server Actions">
                    <field name="name"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>

        <record id="action_server_action" model="ir.actions.act_window">
            <field name="name">Server Actions</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.actions.server</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_server_action_tree"/>
        </record>
        <menuitem action="action_server_action" id="menu_server_action" parent="base.next_id_6"/>

    </data>
</terp>
