<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!-- Values -->

        <record id="values_view_form_action" model="ir.ui.view">
            <field name="name">ir.values.form.action</field>
            <field name="model">ir.values</field>
            <field name="type">form</field>
            <field name="priority">20</field>
            <field name="arch" type="xml">
                <form string="Connect Events to Actions">
                    <field name="name" required="1"/>
                    <field name="model_id" on_change="onchange_object_id(model_id)"/>
                    <field name="action_id" on_change="onchange_action_id(action_id)"/>
                    <field name="key2" required="1"/>
                    <field name="object" readonly="1"/>
                    <field name="res_id"/>
                    <field name="value_unpickle"/>
                    <field name="meta_unpickle"/>
                    <field name="user_id"/>
                    <field name="company_id" groups="base.group_multi_company"/>
                </form>
            </field>
        </record>

        <record id="values_view_tree_action" model="ir.ui.view">
            <field name="name">ir.values.tree.action</field>
            <field name="model">ir.values</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Client Actions">
                    <field name="name"/>
                    <field name="model"/>
                    <field name="action_id"/>
                    <field name="key2"/>
                </tree>
            </field>
        </record>

        <record id="values_view_search_action" model="ir.ui.view">
            <field name="name">ir.values.search.action</field>
            <field name="model">ir.values</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Client Actions">
                    <field name="name"/>
                    <field name="model"/>
                    <field name="key2"/>
                </search>
            </field>
        </record>

        <record id="act_values_form_action" model="ir.actions.act_window">
            <field name="name">Client Actions</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_mode">tree,form</field>
            <field name="search_view_id" ref="values_view_search_action"/>
            <field name="domain">[('key','=','action')]</field>
            <field name="context">{'read':'default','default_object':1}</field>
        </record>

        <record model="ir.actions.act_window.view" id="action_values_tree_view">
	        <field name="sequence" eval="1"/>
	        <field name="view_mode">tree</field>
	        <field name="view_id" ref="values_view_tree_action"/>
	        <field name="act_window_id" ref="act_values_form_action"/>
	    </record>

	    <record model="ir.actions.act_window.view" id="action_values_form_view">
	        <field name="sequence" eval="2"/>
	        <field name="view_mode">form</field>
	        <field name="view_id" ref="values_view_form_action"/>
	        <field name="act_window_id" ref="act_values_form_action"/>
	    </record>

        <menuitem action="act_values_form_action" id="menu_values_form_action" parent="base.menu_custom_action"/>


        <!-- 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">Client Actions Connections</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"/>
            <field name="context">{'read':'default'}</field>
        </record>

        <!-- 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">
                    <group col="6" colspan="4">
                        <field name="name" select="1"/>
                        <field name="code" select="1"/>
                        <field name="company_id" groups="base.group_multi_company"/>
                        <field name="active" groups="base.group_extended"/>
                    </group>
                    <notebook colspan="4">
                    <page string="Sequence">
                        <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)"/>
                        <group col="8" colspan="4">
                            <group>
                                <label colspan="4" string="Current Year with Century: %%(year)s"/>
                                <label colspan="4" string="Current Year without Century: %%(y)s"/>
                                <label colspan="4" string="Month: %%(month)s"/>
                                <label colspan="4" string="Day: %%(day)s"/>
                            </group>
                            <group>
                                <label colspan="4" string="Day of the year: %%(doy)s"/>
                                <label colspan="4" string="Week of the year: %%(woy)s"/>
                                <label colspan="4" string="Day of the week (0:Monday): %%(weekday)s"/>
                            </group>
                            <group>
                                <label colspan="4" string="Hour 00->24: %%(h24)s"/>
                                <label colspan="4" string="Hour 00->12: %%(h12)s"/>
                                <label colspan="4" string="Minute: %%(min)s"/>
                                <label colspan="4" string="Seconde: %%(sec)s"/>
                            </group>
                        </group>
                    </page>
                    </notebook>
                </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="code"/>
                    <field name="name"/>
                    <field name="prefix"/>
                    <field name="padding"/>
                    <field name="company_id" groups="base.group_multi_company"/>
                    <field name="number_next"/>
                    <field name="number_increment"/>
                </tree>
            </field>
        </record>

        <record id="view_sequence_search" model="ir.ui.view">
            <field name="name">ir.sequence.search</field>
            <field name="model">ir.sequence</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Sequences">
                    <field name="name"/>
                    <field name="code"/>
                    <separator orientation="vertical"/>
                    <field name="company_id" select="1" groups="base.group_multi_company"/>
                </search>
            </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_config"/>
        <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"/>
                    <field name="code"/>
                </form>
            </field>
        </record>

        <record id="sequence_type_tree_view" model="ir.ui.view">
            <field name="name">ir.sequence.type.tree</field>
            <field name="model">ir.sequence.type</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Sequence Type">
                    <field name="name"/>
                    <field name="code"/>
                </tree>
            </field>
        </record>

        <record id="view_sequence_type_search" model="ir.ui.view">
            <field name="name">ir.sequence.type.search</field>
            <field name="model">ir.sequence.type</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Sequences Type">
                    <field name="name" select="1"/>
                    <field name="code" select="1"/>
                </search>
            </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"
            groups="base.group_extended"
            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"/>
                    <field name="type"/>
                    <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="action_view_search" model="ir.ui.view">
            <field name="name">ir.actions.actions.search</field>
            <field name="model">ir.actions.actions</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Action">
                    <field name="name"/>
                    <field name="type"/>
                </search>
            </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"/>
            <field name="search_view_id" ref="action_view_search"/>
        </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"/>

        <!--Filters form view-->

        <record id="ir_filters_view_form" model="ir.ui.view">
            <field name="name">ir.filters.form</field>
            <field name="model">ir.filters</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Filters">
                    <group colspan="4" >
                        <field name="name"/>
                        <field name="user_id"/>
                        <field name="model_id"/>
                    </group>
                    <group col="4" expand="1">
                        <separator string="Domain" colspan="2" />
                        <separator string="Context" colspan="2" />
                        <field name="domain" nolabel="1" colspan="2"/>
                        <field name="context" nolabel="1" colspan="2"/>
                    </group>
                </form>
            </field>
        </record>

        <!--        Filters tree view-->

        <record id="ir_filters_view_tree" model="ir.ui.view">
             <field name="name">ir.filters.tree</field>
            <field name="model">ir.filters</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Filters">
                    <field name="name"/>
                    <field name="user_id"/>
                    <field name="model_id"/>
                    <field name="domain"/>
                    <field name="context"/>
                </tree>
            </field>
        </record>

        <!--Filters search view-->

        <record id="ir_filters_view_search" model="ir.ui.view">
            <field name="name">ir.filters.search</field>
            <field name="model">ir.filters</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Filters">
                    <group colspan="4" col="10">
		              <field name="name"/>
		              <field name="user_id"/>
		            </group>
		            <newline/>
		            <group expand="0" string="Group By" colspan="4">
		              <filter string="User" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
		            </group>
                </search>
            </field>
        </record>

        <!--        Filters action-->

        <record id="actions_ir_filters_view" model="ir.actions.act_window">
            <field name="name">Filters</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.filters</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="ir_filters_view_tree"/>
            <field name="search_view_id" ref="ir_filters_view_search"/>
        </record>

        <!--        Filters view menu-->

        <menuitem parent="base.next_id_6" name="Filters"
            id="menu_ir_filters" action="actions_ir_filters_view" />


        <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"/>
                    <field name="type"/>
                    <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="act_report_custom_search_view" model="ir.ui.view">
            <field name="name">ir.actions.report.custom.search</field>
            <field name="model">ir.actions.report.custom</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Report custom">
                    <group colspan="4" col="10">
                        <field name="name"/>
                        <field name="type"/>
                    </group>
                    <newline/>
                    <group expand="0" string="Group By" colspan="4">
                        <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
                    </group>
                </search>
           </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"/>
            <field name="search_view_id" ref="act_report_custom_search_view"/>
        </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">
                    <group col="6" colspan="4">
                        <field name="name" select="1"/>
                        <field name="model" select="1"/>
                        <field name="type" select="1"/>

                        <field name="report_name" select="1"/>
                        <field name="usage"/>
                        <field name="report_type"/>
                    </group>

                    <notebook colspan="4">
                        <page string="Other Configuration">
                            <group col="2" colspan="2">
                                <separator string="RML Report" colspan="2"/>
                                <field name="report_rml"/>
                                <field name="header"/>
                                <field name="auto"/>
                            </group>
                            <group col="2" colspan="2">
                                <separator string="XML Report" colspan="2"/>
                                <field name="report_xsl"/>
                                <field name="report_xml"/>
                            </group>
                            <group col="2" colspan="2">
                                <separator string="Attachments" colspan="2"/>
                                <field name="attachment"/>
                                <field name="attachment_use"/>
                            </group>
                            <group col="2" colspan="2">
                                <separator string="Miscellaneous" colspan="2"/>
                                <field name="multi"/>
                            </group>
                        </page>
                        <page string="Security">
                            <separator string="Groups" colspan="4"/>
                            <field colspan="4" name="groups_id" nolabel="1"/>
                        </page>
                    </notebook>
                </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"/>
                    <field name="report_type"/>
                    <field name="attachment"/>
                </tree>
            </field>
        </record>
        <record id="act_report_xml_search_view" model="ir.ui.view">
            <field name="name">ir.actions.report.xml.search</field>
            <field name="model">ir.actions.report.xml</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Report xml">
                    <group col="10" colspan="4">
                        <field name="name"/>
                        <field name="model"/>
                        <field name="type"/>
                        <field name="report_name"/>
                        <field name="report_type"/>
                    </group>
                    <newline/>
                    <group expand="0" string="Group By" colspan="4">
                        <filter string="Report Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'report_type'}"/>
                    </group>
                </search>
            </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"/>
            <field name="search_view_id" ref="act_report_xml_search_view"/>
        </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">
                    <group col="6" colspan="4">
                        <field name="name" select="1"/>
                        <field name="res_model" select="1"/>
                        <field name="type" readonly="1"/>
                        <field name="src_model" select="2"/>
                        <field name="usage"/>
                        <field name="menus"/>
                    </group>
                    <notebook colspan="4">
                        <page string="General Settings">
                            <group col="2" colspan="2">
                                <separator string="Views" colspan="4"/>
                                <field name="view_type"/>
                                <field name="view_mode"/>
                                <field name="view_id"/>
                                <field name="search_view_id"/>
                            </group>
                            <group col="2" colspan="2">
                                <separator string="Filters" colspan="4"/>
                                <field name="domain"/>
                                <field name="context"/>
                                <field name="limit"/>
                                <field name="auto_refresh"/>
                                <group col="4" colspan="2">
                                    <field name="auto_search"/>
                                    <field name="filter"/>
                                </group>
                            </group>
                            <group col="4" colspan="4">
                                <separator string="View Ordering" colspan="4"/>
                                <field colspan="4" name="view_ids" nolabel="1">
                                    <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>
                            </group>
                        </page>
                        <page string="Security">
                            <separator colspan="4" string="Select Users" />
                            <field colspan="4" name="default_user_ids" nolabel="1"/>
                            <separator colspan="4" string="Select Groups" />
                            <field name="groups_id" nolabel="1" colspan="4" />
                        </page>
                    </notebook>
                </form>
            </field>
        </record>
        <record id="view_window_action_search" model="ir.ui.view">
            <field name="name">ir.actions.windows.search</field>
            <field name="model">ir.actions.act_window</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Open a Window">
                    <group col="10" colspan="4">
                        <field name="name"/>
                        <field name="res_model"/>
                        <field name="view_type"/>
                    </group>
                    <newline/>
                    <group expand="0" string="Group By" colspan="4">
                        <filter string="View Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'view_type'}"/>
                    </group>
                </search>
            </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>
            <field name="search_view_id" ref="view_window_action_search"/>
        </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_tree" model="ir.ui.view">
            <field name="name">ir.actions.wizard.tree</field>
            <field name="model">ir.actions.wizard</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Wizard">
                    <field name="name" select="1"/>
                    <field name="wiz_name" select="1"/>
                    <field name="multi"/>
                </tree>
            </field>
        </record>

         <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="Wizards">
                    <field name="name"/>
                    <field name="type"/>
                    <field name="wiz_name"/>
                    <field name="multi"/>
                    <notebook colspan="4">
                        <page string="Security">
                            <field colspan="4" name="groups_id" nolabel="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record id="act_wizard_search_view" model="ir.ui.view">
            <field name="name">ir.actions.wizard.search</field>
            <field name="model">ir.actions.wizard</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Wizards">
                    <field name="name"/>
                    <field name="type"/>
                    <field name="wiz_name"/>
                </search>
            </field>
        </record>

        <record id="ir_action_wizard" model="ir.actions.act_window">
            <field name="name">Wizards</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ir.actions.wizard</field>
            <field name="view_type">form</field>
            <field name="search_view_id" ref="act_wizard_search_view"/>
        </record>

        <menuitem action="ir_action_wizard" id="menu_ir_action_wizard" parent="base.next_id_6"/>

        <!-- Companies -->
        <menuitem id="menu_res_company_global"
            parent="base.menu_administration"
            name="Companies"
            sequence="5"/>

        <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"
            groups="base.group_multi_company"
            id="menu_action_res_company_tree" parent="base.menu_res_company_global"
            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="base.menu_res_company_global"/>

        <!-- 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"/>
            <field name="search_view_id" ref="view_users_search"/>
        </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"
            groups="base.group_extended"/>

        <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 name="name"/>
                    <field name="parent_id"/>
                    <separator string="Description" colspan="4"/>
                    <field name="description" nolabel="1" colspan="4"/>
                    <separator string="Workflow transitions" colspan="4"/>
                     <field name="workflow_transition_ids" nolabel="1" colspan="4">
                        <tree string="Workflow transitions">
                            <field name="wkf_id"/>
                            <field name="act_from"/>
                            <field name="act_to"/>
                            <field name="signal"/>
                            <field name="condition"/>
                        </tree>
                     </field>
                </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"/>
                    <field name="parent_id"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>
        <record id="view_roles_search" model="ir.ui.view">
            <field name="name">res.roles.search</field>
            <field name="model">res.roles</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Role">
                    <field name="name"/>
                    <field name="parent_id"/>
                </search>
            </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"
            groups="base.group_extended"
            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>
            <field name="search_view_id" ref="view_roles_search"/>
        </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="Views">
                    <group colspan="2" col="2">
                        <separator string="General" colspan="2"/>
                        <field name="name" select="1"/>
                        <field name="type" select="1"/>
                        <field name="model" select="1"/>
                        <field name="priority"/>
                    </group>
                    <group colspan="2" col="2">
                        <separator string="Advanced" colspan="2"/>
                        <field name="field_parent"/>
                        <field name="inherit_id" select="1"/>
                        <field name="xml_id" select="1"/>
                    </group>
                    <separator string="View architecture" colspan="4"/>
                    <field colspan="4" nolabel="1" 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 string="Views">
                    <field name="priority" string="Sequence"/>
                    <field name="name"/>
                    <field name="type"/>
                    <field name="model"/>
                    <field name="xml_id"/>
                    <field name="inherit_id"/>
                </tree>
            </field>
        </record>

        <record id="view_view_search" model="ir.ui.view">
            <field name="name">ir.ui.view.search</field>
            <field name="model">ir.ui.view</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Views">
                    <field name="name"/>
                    <field name="type"/>
                    <field name="model"/>
                    <field name="inherit_id"/>
                    <field name="xml_id"/>
                    <newline/>
                    <group expand="0" string="Group By...">
                        <filter string="Object" icon="terp-stage" domain="[]" context="{'group_by':'model'}"/>
                        <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
                    </group>
                </search>
            </field>
        </record>

        <record id="action_ui_view" model="ir.actions.act_window">
            <field name="name">Views</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">
                    <group colspan="4" col="2">
                        <field name="name" select="1" />
                    </group>
                    <notebook colspan="4">
                    <page string="Attachment">
                    <group col="4" colspan="4">
                        <separator string="Data" colspan="2"/>
                        <field name="type"/>
                        <newline />
                        <group col="2" colspan="4" attrs="{'invisible':[('type','=','url')]}">
                            <field name="datas" filename="datas_fname"/>
                            <field name="datas_fname" select="1"/>
                        </group>
                        <group col="2" colspan="4" attrs="{'invisible':[('type','=','binary')]}">
                            <field name="url" widget="url"/>
                        </group>
                    </group>
                        <group col="2" colspan="2">
                            <separator string="Attached To" colspan="2"/>
                            <field name="res_model" select="2"/>
                            <field name="res_id"/>
                            <field name="res_name"/>
                        </group>
                    <group col="2" groups="base.group_extended">
                        <separator string="Created" colspan="2"/>
                        <field name="create_uid" select="2"/>
                        <field name="create_date" select="2"/>
                    </group>
                    </page>
                    <page string="Notes">
                        <field name="description" nolabel="1" colspan="4"/>
                    </page>
                    </notebook>
                </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="datas_fname"/>
                    <field name="create_uid"/>
                    <field name="create_date"/>
                </tree>
            </field>
        </record>
        <record id="view_attachment_search" model="ir.ui.view">
            <field name="name">ir.attachment.search</field>
            <field name="model">ir.attachment</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Attachments">
                    <group colspan="4" col="10">
                        <field name="name"/>
                        <field name="datas_fname"/>
                        <field name="type"/>
                    </group>
                    <newline/>
                    <group expand="0" string="Group By" colspan="4">
                        <filter string="File Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
                    </group>
                </search>
            </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" eval="False"/>
            <field name="search_view_id" ref="view_attachment_search"/>
        </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">
                    <group col="6" colspan="4">
                        <field name="name"/>
                        <field name="model"/>
                        <field name="osv_memory"/>
                        <field name="state"/>
                    </group>
                    <notebook colspan="4">
                        <page 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">
                                    <group colspan="4" col="4">
                                        <field name="name" select="1"/>
                                        <field colspan="4" name="field_description" select="2"/>
                                    </group>

                                    <group colspan="2" col="2">
                                        <separator string="Field Type" colspan="2"/>
                                        <field name="ttype" select="2"/>
                                        <field name="relation" attrs="{'required': [('ttype','in',['many2one','one2many','many2many'])],'readonly': [('ttype','!=','one2many'), ('ttype','!=','many2one'), ('ttype','!=','many2many')]}"/>
                                        <field name="relation_field" attrs="{'required': [('ttype','=','one2many')], 'readonly': [('ttype','!=','one2many')]}"/>
                                        <field name="selection" attrs="{'required': [('ttype','in',['selection','reference'])], 'readonly': [('ttype','not in',['selection','reference'])]}"/>
                                        <field name="size" attrs="{'required': [('ttype','in',['char','reference'])], 'readonly': [('ttype','not in',['char','reference'])]}"/>
                                        <field name="state"/>
                                        <field name="domain" attrs="{'readonly': [('relation','=','')]}"/>
                                    </group>

                                    <group colspan="2" col="2">
                                        <separator string="Properties" colspan="2"/>
                                        <field name="required" select="2"/>
                                        <field name="readonly" select="2"/>
                                        <field name="select_level"/>
                                        <field name="translate"/>
                                        <field name="on_delete" attrs="{'readonly': [('ttype','!=','many2one')]}"/>
                                    </group>
                                    <separator string="Security on Groups" colspan="4"/>
                                    <field name="groups" colspan="4" nolabel="1"/>
                                </form>
                            </field>
                            <group col="2" colspan="4">
                                <button colspan="2"
                                    icon="gtk-justify-fill"
                                    name="%(act_menu_create)d"
                                    string="Create a Menu" type="action"
                                    target="new" />
                            </group>
                        </page>
                        <page string="Access Rights">
                            <field colspan="4" name="access_ids" select="1" nolabel="1">
                                <tree string="Access Rules" editable="bottom">
                                    <field name="group_id"/>
                                    <field name="perm_read"/>
                                    <field name="perm_write"/>
                                    <field name="perm_create"/>
                                    <field name="perm_unlink"/>
                                    <field name="name"/>
                                </tree>
                            </field>
                        </page>
                        <page string="Notes">
                            <field colspan="4" name="info" nolabel="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"/>
                    <field name="state"/>
                    <field name="osv_memory"/>
                </tree>
            </field>
        </record>

        <record id="view_model_search" model="ir.ui.view">
            <field name="name">ir.model.search</field>
            <field name="model">ir.model</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Model Description">
                    <field name="name"/>
                    <field name="model"/>
                    <field name="osv_memory"/>
                    <field name="state"/>
                    <field name="access_ids"/>
                    <field name="info"/>
                </search>
            </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">
                    <group colspan="4" col="4">
                        <field name="name" select="1"/>
                        <field name="model_id" attrs="{'readonly': [('state','!=', 'manual')]}"/>
                        <field name="field_description"/>
                        <field name="state"/>
                    </group>
                    <notebook colspan="4">
                        <page string="Properties">
                            <group colspan="2" col="2">
                                <field name="ttype"/>
                                <field name="relation" attrs="{'required': [('ttype','in', ['many2one','one2many','many2many'])],
                                                                          'readonly': [('ttype','not in', ['many2one','one2many','many2many'])]}"/>
                                <field name="relation_field" attrs="{'required': [('ttype','=','one2many')], 'readonly': [('ttype','!=','one2many')]}"/>
                                <field name="selection" attrs="{'required': [('ttype','in',['selection','reference'])], 'readonly': [('ttype','not in',['selection','reference'])]}"/>
                                <field name="size" attrs="{'required': [('ttype','in',['char','reference'])], 'readonly': [('ttype','not in',['char','reference'])]}"/>
                                <field name="domain" attrs="{'readonly': [('relation','=','')]}"/>
                            </group>

                            <group colspan="2" col="2">
                                <field name="required"/>
                                <field name="readonly"/>
                                <field name="select_level"/>
                                <field name="translate"/>
                                <field name="on_delete" attrs="{'readonly': [('ttype','!=','many2one')]}"/>
                            </group>
                        </page>
                        <page string="Security">
                            <field name="groups" colspan="4" nolabel="1"/>
                        </page>
                    </notebook>
                </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"/>
                    <field name="model_id"/>
                    <field name="ttype"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>

        <record id="view_model_fields_search" model="ir.ui.view">
            <field name="name">ir.model.fields.search</field>
            <field name="model">ir.model.fields</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Fields">
                    <field name="name"/>
                    <field name="field_description"/>
                    <field name="model_id"/>
                    <field name="ttype"/>
                    <field name="required"/>
                    <field name="readonly"/>
                </search>
            </field>
        </record>

        <record model="ir.ui.view" id="view_model_data_form">
            <field name="name">ir.model.data.form</field>
            <field name="model">ir.model.data</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Module data">
                    <field name="name"/>
                    <field name="module"/>
                    <field name="model"/>
                    <field name="res_id"/>
                    <field name="noupdate"/>
                    <newline/>
                    <field name="date_update" />
                    <field name="date_init" />
                </form>
            </field>
        </record>

        <record id="view_model_data_list" model="ir.ui.view">
            <field name="name">ir.model.data.list</field>
            <field name="model">ir.model.data</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Module Data">
                    <field name="module"/>
                    <field name="name"/>
                    <field name="model"/>
                    <field name="res_id"/>
                </tree>
            </field>
        </record>

        <record id="view_model_data_search" model="ir.ui.view">
            <field name="name">ir.model.data.search</field>
            <field name="model">ir.model.data</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Module Data">
                    <field name="module"/>
                    <field name="name"/>
                    <field name="model"/>
                    <field name="res_id"/>
                    <field name="noupdate"/>
                    <newline/>
                    <group expand="0" string="Group By...">
                        <filter string="Module" icon="terp-stage" domain="[]" context="{'group_by':'module'}"/>
                        <filter string="Object" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'model'}"/>
                    </group>
                </search>
            </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" groups="base.group_extended"/>
        <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"/>

        <record id="action_model_data" model="ir.actions.act_window">
            <field name="name">Module data</field>
            <field name="res_model">ir.model.data</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_model_data_list"/>
        </record>
        <menuitem action="action_model_data" id="ir_model_data_menu" parent="base.next_id_9"
                  groups="base.group_extended"/>

        <!-- Translations -->

        <record id="view_translation_search" model="ir.ui.view">
            <field name="name">Translations</field>
            <field name="model">ir.translation</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Translations">
                    <filter icon="terp-project"
                        string="Untranslated"
                        domain="['|',('value', '=', False),('value','=','')]"/>
                    <separator orientation="vertical"/>
                    <field name="lang" select="1"/>
                    <field name="src" select="1"/>
                    <field name="value" select="1"/>
                </search>
            </field>
        </record>

        <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="lang"/>
                    <field name="type"/>
                    <field name="name"/>
                    <field name="res_id"/>
                    <group colspan="4" col="4">
                        <group colspan="2" col="2">
		                    <separator string="Source Term" colspan="2"/>
		                    <field name="src" nolabel="1" height="400"/>
	                    </group>
	                    <group colspan="2" col="2">
		                    <separator string="Tranlsation Term" colspan="2"/>
		                    <field name="value" nolabel="1" height="400"/>
		                </group>
	                </group>
                </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 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">Translation 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_app"/>

        <!--
    =============================================================
    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 name="sequence"/>
                    <field icon="icon" name="complete_name" string="Menu"/>
                </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">
                    <group col="8">
                        <field name="name" string="Menu" />
                        <field  name="parent_id" colspan="4"/>
                        <field name="sequence" colspan="2"/>
                        <field name="complete_name" string="Full Path" colspan="8"/>
                        <field name="action" colspan="4" />
                        <field name="icon" on_change="onchange_icon(icon)" colspan="2"/>
                        <field name="icon_pict" widget="picture" nolabel="1" colspan="2"/>
                    </group>
                    <notebook colspan="4">
                        <page string="Security on Groups">
		                    <field name="groups_id" colspan="4" nolabel="1"/>
		                </page>
		            </notebook>
                </form>
            </field>
        </record>

        <record id="edit_menu_access_search" model="ir.ui.view">
            <field name="name">ir.ui.menu.search</field>
            <field name="model">ir.ui.menu</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Menu">
	                <field name="name" string="Menu" />
	                <field name="parent_id"/>
	            </search>
	        </field>
	    </record>

        <record id="grant_menu_access" model="ir.actions.act_window">
            <field name="name">Manage Menus</field>
            <field name="res_model">ir.ui.menu</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="edit_menu"/>
            <field name="search_view_id" ref="edit_menu_access_search"/>
        </record>
        <menuitem action="grant_menu_access" id="menu_grant_menu_access" parent="base.menu_security" sequence="1"/>

        <!--
    =============================================================
    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="priority" string="Sequence"/>
                    <field name="name"/>
                    <field name="nextcall"/>
                    <field name="interval_number"/>
                    <field name="interval_type"/>
                    <field name="numbercall"/>
                    <field name="user_id" invisible="1"/>
                </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"/>
                    <field name="active"/>
                    <field name="user_id" />
                    <field name="priority" />
                    <notebook colspan="4">
                    <page string="Information">
                        <field name="interval_number"/>
                        <field name="interval_type"/>
                        <newline/>
                        <field name="nextcall"/>
                        <field name="numbercall"/>
                        <field name="doall"/>
                    </page>
                    <page string="Technical Data" groups="base.group_extended">
                        <separator string="Action to Trigger" colspan="4"/>
                        <field name="model" groups="base.group_extended"/>
                        <field name="function"/>
                        <field colspan="4" name="args"/>
                    </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record id="ir_cron_view_search" model="ir.ui.view">
            <field name="name">ir.cron.search</field>
            <field name="model">ir.cron</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Scheduled Actions">
                    <field name="name"/>
                    <field name="user_id" widget="selection"/>
                    <field name="nextcall"/>
                    <field name="active"/>
                    <newline/>
                    <group expand="0" string="Group By...">
                        <filter string="User" icon="terp-personal-" domain="[]" context="{'group_by':'user_id'}"/>
                        <filter string="Next Call" icon="terp-go-month"
                                domain="[]" context="{'group_by':'nextcall'}" />
                    </group>
                </search>
            </field>
        </record>

        <record model="ir.ui.view" id="ir_cron_view_calendar">
            <field name="name">ir.cron.calendar</field>
            <field name="model">ir.cron</field>
            <field name="type">calendar</field>
            <field name="priority" eval="2"/>
            <field name="arch" type="xml">
                <calendar string="Scheduled Actions" date_start="nextcall" color="user_id">
                    <field name="name"/>
                    <field name="user_id"/>
                </calendar>
            </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="view_mode">tree,form,calendar</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_config"/>
        <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" editable="bottom">
                    <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"/>
                    <field name="model_id"/>
                    <field name="group_id"/>
                    <newline/>
                    <field name="perm_read"/>
                    <field name="perm_write"/>
                    <field name="perm_create"/>
                    <field name="perm_unlink"/>
                </form>
            </field>
        </record>
        <record id="ir_access_view_search" model="ir.ui.view">
            <field name="name">ir.model.access.search</field>
            <field name="model">ir.model.access</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Access Controls">
                    <field name="name"/>
                    <field name="model_id"/>
                    <field name="group_id"/>
                </search>
            </field>
        </record>

        <record id="ir_access_act" model="ir.actions.act_window">
            <field name="name">Access Controls List</field>
            <field name="res_model">ir.model.access</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="ir_access_view_tree"/>
            <field name="search_view_id" ref="ir_access_view_search"/>
        </record>
        <menuitem name="Access Controls" id="menu_security_access" parent="menu_security" sequence="5"/>
        <menuitem action="ir_access_act" id="menu_ir_access_act" parent="menu_security_access"/>

        <!-- Rules -->

        <record id="view_rule_form" model="ir.ui.view">
            <field name="name">Record rules</field>
            <field name="model">ir.rule</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Record rules">
                    <group col="2" colspan="2">
                        <separator colspan="2" string="General"/>
                        <field colspan="4" name="name"/>
                        <field name="model_id"/>
                    </group>
                    <group col="4" colspan="2">
                        <separator colspan="4" string="Access Rights"/>
                        <field name="perm_read"/>
                        <field name="perm_write"/>
                        <field name="perm_create"/>
                        <field name="perm_unlink"/>
                    </group>
                    <separator colspan="4" string="Domain Setup"/>
                    <group colspan="4">
                        <field name="domain_force" colspan="4"/>
                    </group>
                    <separator colspan="4" string="Groups (no group = global)"/>
                    <group colspan="4" expand="1">
                        <field name="global"/>
                        <field name="groups" nolabel="1" colspan="4"/>
                    </group>
                    <separator colspan="4" string="Combination of rules"/>
                    <label align="0.0" colspan="4"
                        string="1. Global rules are combined together with a logical AND operator, and with the result of the following steps"/>
                    <label align="0.0" colspan="4"
                        string="2. Group-specific rules are combined together with a logical AND operator"/>
                    <label align="0.0" colspan="4"
                        string="3. If user belongs to several groups, the results from step 2 are combined with logical OR operator"/>
                    <label align="0.0" colspan="4"
                        string="Example: GLOBAL_RULE_1 AND GLOBAL_RULE_2 AND ( (GROUP_A_RULE_1 AND GROUP_A_RULE_2) OR (GROUP_B_RULE_1 AND GROUP_B_RULE_2) )"/>
                </form>
            </field>
        </record>
        <record id="view_rule_tree" model="ir.ui.view">
            <field name="name">Record rules</field>
            <field name="model">ir.rule</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"/>
                    <field name="domain_force"/>
                    <field name="perm_read"/>
                    <field name="perm_write"/>
                    <field name="perm_create"/>
                    <field name="perm_unlink"/>
                </tree>
            </field>
        </record>
        <record id="view_rule_search" model="ir.ui.view">
            <field name="name">Record rules</field>
            <field name="model">ir.rule</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Record rules">
                    <field name="model_id"/>
                    <field name="global"/>
                    <field name="groups"/>
                </search>
            </field>
        </record>

        <record id="action_rule" model="ir.actions.act_window">
            <field name="name">Record Rules</field>
            <field name="res_model">ir.rule</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_rule_tree"/>
            <field name="search_view_id" ref="view_rule_search"/>
        </record>
        <menuitem action="action_rule" id="menu_action_rule" parent="base.menu_security" sequence="3"/>

        <record id="property_rule" model="ir.rule">
            <field name="name">Property multi-company</field>
            <field model="ir.model" name="model_id" ref="model_ir_property"/>
            <field eval="True" name="global"/>
            <field name="domain_force">['|',('company_id','child_of',user.company_id.id),('company_id','=',False)]</field>
        </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">
                    <group col="6" colspan="4">
                        <field name="name"/>
                        <field name="model_id"/>
                        <field name="state"/>
                        <field name="sequence"/>
                        <field name="condition"/>
                    </group>
                    <notebook colspan="4">
                        <page string="Python Code" attrs="{'invisible':[('state','!=','code')]}">
                            <separator colspan="4" string="Python Code"/>
                            <field name="code" colspan="4" nolabel="1"/>
                        </page>
                        <page string="Trigger" attrs="{'invisible':[('state','!=','trigger')]}">
                            <separator colspan="4" string="Trigger Configuration"/>
                            <field name="wkf_model_id" attrs="{'required':[('state','=','trigger')]}"/>
                            <field name="trigger_obj_id" context="{'key':''}" domain="[('model_id','=',model_id)]" attrs="{'required':[('state','=','trigger')]}"/>
                            <field name="trigger_name" attrs="{'required':[('state','=','trigger')]}"/>
                        </page>
                        <page string="Action to Launch" attrs="{'invisible':[('state','!=','client_action')]}">
                            <separator colspan="4" string="Client Action Configuration"/>
                            <field name="action_id" attrs="{'required':[('state','=','client_action')]}"/>
                        </page>
                        <page string="Email Configuration" attrs="{'invisible':[('state','!=','email')]}">
                            <separator colspan="4" string="Email Configuration"/>
                            <field name="email" domain="[('model_id','=',model_id)]" attrs="{'required':[('state','=','email')]}"/>
                            <field name="subject" colspan="4" attrs="{'required':[('state','=','email')]}"/>
                            <field name="message" select="2" colspan="4" attrs="{'required':[('state','=','email')]}"/>
                            <newline/>
                            <label colspan="4" string="Access all the fields related to the current object using expressions, i.e. object.partner_id.name " align="0.0"/>
                        </page>
                        <page string="SMS Configuration" attrs="{'invisible':[('state','!=','sms')]}">
                            <separator colspan="4" string="SMS Configuration"/>
                            <field name="mobile" domain="[('model_id','=',model_id)]" attrs="{'required':[('state','=','sms')]}"/>
                            <field name="sms" colspan="4" attrs="{'required':[('state','=','sms')]}"/>
                            <newline/>
                            <label colspan="4" string="Access all the fields related to the current object using expressions, i.e. object.partner_id.name " align="0.0"/>
                        </page>
                        <page string="Create / Write / Copy" attrs="{'invisible':[('state','!=','object_create'), ('state','!=','object_write'), ('state','!=','object_copy')]}">
                            <separator colspan="4" string="Fields Mapping"/>
                            <field name="srcmodel_id" attrs="{'required':[('state','!=','dummy'), ('state','!=','sms'), ('state','!=','code'), ('state','!=','loop'), ('state','!=','trigger'), ('state','!=','object_copy'), ('state','!=','client_action'), ('state','!=','email'), ('state','!=','sms'), ('state','!=','other')]}"/>
                            <field name="copy_object" on_change="change_object(copy_object, state)" select="2" attrs="{'required':[('state','!=','dummy'), ('state','!=','sms'), ('state','!=','code'), ('state','!=','loop'), ('state','!=','trigger'), ('state','!=','object_write'), ('state','!=','object_create'), ('state','!=','client_action'), ('state','!=','email'), ('state','!=','sms'), ('state','!=','other')]}"/>
                            <field name="fields_lines" nolabel="1" colspan="4">
                                <tree string="Field Mappings" editable="top">
                                    <field name="col1" domain="[('model_id','=',parent.srcmodel_id or parent.model_id)]"/>
                                    <field name="type"/>
                                    <field name="value" colspan="4"/>
                                </tree>
                                <form string="Field Mapping">
                                    <field name="col1" domain="[('model_id','=',parent.srcmodel_id or parent.model_id)]"/>
                                    <field name="type"/>
                                    <field name="value" colspan="4"/>
                                </form>
                            </field>
                            <field name="record_id" attrs="{'readonly':[('state','!=','object_create')]}" domain="[('model_id','in',[model_id])]"/>
                             <field name="write_id" attrs="{'readonly':[('state','!=','object_write')]}"/>
                            <label colspan="4" string="If you use a formula type, use a python expression using the variable 'object'." align="0.0"/>
                        </page>
                        <page string="Iteration Actions" attrs="{'invisible':[('state','!=','loop')]}">
                            <separator colspan="4" string="Iteration Action Configuration"/>
                            <field name="expression" attrs="{'required':[('state','=','loop')]}"/>
                            <field name="loop_action" domain="[('state','!=','loop')]" attrs="{'required':[('state','=','loop')]}"/>
                        </page>
                        <page string="Multi Actions" attrs="{'invisible':[('state','!=','other')]}">
                            <separator colspan="4" string="Other Actions Configuration"/>
                            <field name="child_ids" nolabel="1" colspan="4"/>
                            <label colspan="4" string="Only one client action will be executed, last client action will be considered in case of multiple client actions." align="0.0"/>
                        </page>
                    </notebook>
                    <field name="type" readonly="1"/>
                </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"/>
                    <field name="model_id"/>
                    <field name="sequence"/>
                </tree>
            </field>
        </record>

        <record id="view_server_action_search" model="ir.ui.view">
            <field name="name">ir.actions.server.search</field>
            <field name="model">ir.actions.server</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Server Actions">
                    <group col="10" colspan="4">
	                    <field name="name"/>
	                    <field name="state"/>
	                    <field name="model_id"/>
	                </group>
                    <newline/>
                    <group expand="0" string="Group By" colspan="4" col="4">
	                   <filter string="Action Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'state'}"/>
                    </group>
                </search>
            </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_mode">tree,form</field>
            <field name="view_id" ref="view_server_action_tree"/>
            <field name="search_view_id" ref="view_server_action_search"/>
            <field name="context">{'key':'server_action'}</field>
        </record>
        <menuitem action="action_server_action" id="menu_server_action" parent="base.menu_custom_action"/>

        <record model="ir.actions.act_window" id="action_model_grid_security">
            <field name="name">Access Controls Grid</field>
            <field name="res_model">ir.model.grid</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>
        <menuitem action="action_model_grid_security" id="menu_ir_access_grid" parent="menu_security_access"/>

        <record id="ir_actions_todo_tree" model="ir.ui.view">
            <field name="model">ir.actions.todo</field>
            <field name="name">Config Wizard Steps</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree editable="bottom" string="Config Wizard Steps">
                    <field name="sequence"/>
                    <field name="action_id"/>
                    <field name="restart"/>
                    <field name="state" readonly="1"/>
                    <button name="action_open" states="cancel,skip,done" string="Set as todo" type="object" icon="gtk-convert"/>
                    <button name="action_launch" states="open" string="Launch this wizard" type="object" icon="gtk-execute"/>
                </tree>
            </field>
        </record>

        <record id="config_wizard_step_view_form" model="ir.ui.view">
            <field name="model">ir.actions.todo</field>
            <field name="name">Config Wizard Steps</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form editable="bottom" string="Config Wizard Steps">
                    <group colspan="4" col="6">
                        <field name="action_id"/>
                        <field name="restart"/>
                        <field name="sequence"/>
                    </group>
                    <separator string="Groups" colspan="4"/>
                    <field name="groups_id" nolabel="1" colspan="4"/>
                    <group colspan="4" col="4">
                        <field name="state" colspan="2" readonly="1"/>
                        <button name="action_launch" states="open" string="Launch" type="object" icon="gtk-execute" help="Launch this wizard"/>
                        <button name="action_open" states="cancel,skip,done" string="Set as todo" type="object" icon="gtk-convert"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="config_wizard_step_view_search" model="ir.ui.view">
            <field name="model">ir.actions.todo</field>
            <field name="name">ir.actions.todo.select</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Actions">
                	<filter string="To Do" name="todo" icon="terp-camera_test" domain=" ['|',('state','=','open'),'&amp;',('state','=','skip'),('restart','=','onskip')]" help="Todo State Or (Skip State And Onskip Restart)"/>
                	<separator orientation="vertical"/>
                    <field name="state"/>
                    <field name="restart"/>
                </search>
            </field>
        </record>

        <record id="act_ir_actions_todo_form" model="ir.actions.act_window">
            <field name="name">Configuration Wizards</field>
            <field name="res_model">ir.actions.todo</field>
            <field name="view_id" ref="ir_actions_todo_tree"/>
            <field name="view_type">form</field>
        </record>
        <menuitem id="next_id_11" name="Configuration Wizards" parent="base.menu_config" sequence="1"/>

        <menuitem action="act_ir_actions_todo_form" id="menu_ir_actions_todo_form"
                parent="next_id_11" groups="base.group_extended" sequence="20"/>

    </data>
</openerp>
