<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <menuitem name="Models" id="menu_models" parent="menu_administration"/>
        <record model="ir.ui.view" id="model_view_form">
            <field name="model">ir.model</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
              <![CDATA[
                <form string="Model Description" col="6">
                    <label name="name"/>
                    <field name="name"/>
                    <label name="model"/>
                    <field name="model"/>
                    <label name="module"/>
                    <field name="module"/>
                    <separator name="info" colspan="6"/>
                    <field name="info" colspan="6"/>
                    <field name="fields" colspan="6" readonly="1"/>
                </form>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="model_view_tree">
            <field name="model">ir.model</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
              <![CDATA[
                <tree string="Model Description">
                    <field name="name"/>
                    <field name="model"/>
                    <field name="info"/>
                    <field name="module"/>
                </tree>
                ]]>
            </field>
        </record>
        <record model="ir.action.act_window" id="act_model_form">
            <field name="name">Models</field>
            <field name="res_model">ir.model</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_model_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="model_view_tree"/>
            <field name="act_window" ref="act_model_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_model_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="model_view_form"/>
            <field name="act_window" ref="act_model_form"/>
        </record>
        <menuitem parent="ir.menu_models"
            action="act_model_form" id="menu_model_form"/>
        <record model="ir.ui.view" id="model_fields_view_form">
            <field name="model">ir.model.field</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
              <![CDATA[
                <form string="Fields">
                    <label name="name"/>
                    <field name="name"/>
                    <label name="model"/>
                    <field name="model" readonly="1"/>
                    <label name="ttype"/>
                    <field name="ttype"/>
                    <label name="relation"/>
                    <field name="relation"/>
                    <label name="field_description"/>
                    <field name="field_description" colspan="3"/>
                    <label name="help" yfill="1" xalign="0.0"/>
                    <field name="help" colspan="3"/>
                    <label name="module"/>
                    <field name="module"/>
                </form>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="model_fields_view_tree">
            <field name="model">ir.model.field</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
              <![CDATA[
                <tree string="Fields">
                    <field name="name"/>
                    <field name="model"/>
                    <field name="ttype"/>
                    <field name="relation"/>
                    <field name="field_description"/>
                    <field name="module"/>
                </tree>
                ]]>
            </field>
        </record>
        <record model="ir.action.act_window" id="act_model_fields_form">
            <field name="name">Fields</field>
            <field name="res_model">ir.model.field</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_model_fields_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="model_fields_view_tree"/>
            <field name="act_window" ref="act_model_fields_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_model_fields_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="model_fields_view_form"/>
            <field name="act_window" ref="act_model_fields_form"/>
        </record>
        <menuitem parent="ir.menu_models"
            action="act_model_fields_form" id="model_model_fields_form"/>
        <record model="ir.ui.view" id="model_access_view_tree">
            <field name="model">ir.model.access</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
              <![CDATA[
                <tree string="Access controls">
                    <field name="perm_read"/>
                    <field name="perm_write"/>
                    <field name="perm_create"/>
                    <field name="perm_delete"/>
                    <field name="model"/>
                    <field name="group"/>
                </tree>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="model_access_view_form">
            <field name="model">ir.model.access</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
              <![CDATA[
                <form string="Access controls">
                    <label name="model"/>
                    <field name="model"/>
                    <label name="group"/>
                    <field name="group"/>
                    <newline/>
                    <label name="perm_read"/>
                    <field name="perm_read"/>
                    <label name="perm_write"/>
                    <field name="perm_write"/>
                    <label name="perm_create"/>
                    <field name="perm_create"/>
                    <label name="perm_delete"/>
                    <field name="perm_delete"/>
                    <separator name="description" colspan="4"/>
                    <field name="description" colspan="4"/>
                </form>
                ]]>
            </field>
        </record>
        <record model="ir.action.act_window" id="act_model_access_form">
            <field name="name">Models Access</field>
            <field name="res_model">ir.model.access</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_model_access_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="model_access_view_tree"/>
            <field name="act_window" ref="act_model_access_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_model_access_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="model_access_view_form"/>
            <field name="act_window" ref="act_model_access_form"/>
        </record>
        <menuitem parent="ir.menu_models"
            action="act_model_access_form" id="menu_model_access_form"/>

        <record model="ir.ui.view" id="model_field_access_view_tree">
            <field name="model">ir.model.field.access</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <![CDATA[
                <tree string="Field Access">
                    <field name="perm_read"/>
                    <field name="perm_write"/>
                    <field name="field"/>
                    <field name="group"/>
                </tree>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="model_field_access_view_form">
            <field name="model">ir.model.field.access</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Field Access">
                    <label name="field"/>
                    <field name="field"/>
                    <label name="group"/>
                    <field name="group"/>
                    <newline/>
                    <label name="perm_read"/>
                    <field name="perm_read"/>
                    <label name="perm_write"/>
                    <field name="perm_write"/>
                    <separator name="description" colspan="4"/>
                    <field name="description" colspan="4"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.action.act_window" id="act_model_field_access_form">
            <field name="name">Fields Access</field>
            <field name="res_model">ir.model.field.access</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_model_field_access_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="model_field_access_view_tree"/>
            <field name="act_window" ref="act_model_field_access_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_model_field_access_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="model_field_access_view_form"/>
            <field name="act_window" ref="act_model_field_access_form"/>
        </record>
        <menuitem parent="menu_model_access_form"
            action="act_model_field_access_form" id="menu_model_field_access_form"/>

        <record model="ir.action.report" id="report_model_graph">
            <field name="name">Graph</field>
            <field name="model">ir.model</field>
            <field name="report_name">ir.model.graph</field>
        </record>

        <record model="ir.ui.view" id="print_model_graph_start_view_form">
            <field name="model">ir.model.print_model_graph.start</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Print Model Graph" col="2">
                    <label name="level"/>
                    <field name="level"/>
                    <label name="filter"/>
                    <field name="filter"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.action.wizard" id="print_model_graph">
            <field name="name">Graph</field>
            <field name="wiz_name">ir.model.print_model_graph</field>
            <field name="model">ir.model</field>
        </record>
        <record model="ir.action.keyword" id="print_model_graph_keyword">
            <field name="keyword">form_print</field>
            <field name="model">ir.model,-1</field>
            <field name="action" ref="print_model_graph"/>
        </record>

        <record model="ir.ui.view" id="model_button_view_list">
            <field name="model">ir.model.button</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <![CDATA[
                <tree string="Buttons">
                    <field name="model"/>
                    <field name="name"/>
                </tree>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="model_button_view_form">
            <field name="model">ir.model.button</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Button">
                    <label name="model"/>
                    <field name="model"/>
                    <label name="name"/>
                    <field name="name"/>
                    <field name="groups" colspan="4"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.action.act_window" id="act_model_button_form">
            <field name="name">Buttons</field>
            <field name="res_model">ir.model.button</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_model_button_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="model_button_view_list"/>
            <field name="act_window" ref="act_model_button_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_model_button_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="model_button_view_form"/>
            <field name="act_window" ref="act_model_button_form"/>
        </record>
        <menuitem parent="menu_model_access_form"
            action="act_model_button_form" id="menu_model_button_form"/>

    </data>
</tryton>
