<?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>

        <record model="ir.action.wizard" id="act_view_show">
            <field name="name">Show View</field>
            <field name="wiz_name">ir.ui.view.show</field>
        </record>

        <record model="ir.ui.view" id="view_view_form">
            <field name="model">ir.ui.view</field>
            <field name="type">form</field>
            <field name="name">ui_view_form</field>
        </record>
        <record model="ir.ui.view" id="view_view_tree">
            <field name="model">ir.ui.view</field>
            <field name="type">tree</field>
            <field name="priority" eval="10"/>
            <field name="name">ui_view_list</field>
        </record>
        <record model="ir.ui.view" id="view_view_list_extension">
            <field name="model">ir.ui.view</field>
            <field name="type">tree</field>
            <field name="priority" eval="20"/>
            <field name="name">ui_view_list_extension</field>
        </record>
        <record model="ir.action.act_window" id="act_view_form">
            <field name="name">Views</field>
            <field name="type">ir.action.act_window</field>
            <field name="res_model">ir.ui.view</field>
            <field name="domain" eval="[('basis', '=', True)]" pyson="1"/>
            <field name="order" eval="[('model', None)]" pyson="1"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_view_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="view_view_tree"/>
            <field name="act_window" ref="act_view_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_view_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="view_view_form"/>
            <field name="act_window" ref="act_view_form"/>
        </record>
        <menuitem
            parent="menu_ui"
            action="act_view_form"
            sequence="10"
            id="menu_view"/>
        <record model="ir.model.button" id="view_show_button">
            <field name="model">ir.ui.view</field>
            <field name="name">show</field>
            <field name="string">Show</field>
        </record>
        <record model="ir.model.button-res.group" id="view_show_button_group_admin">
            <field name="button" ref="view_show_button"/>
            <field name="group" ref="res.group_admin"/>
        </record>

        <record model="ir.model.access" id="access_ui_view">
            <field name="model">ir.ui.view</field>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>
        <record model="ir.model.access" id="access_ui_view_admin">
            <field name="model">ir.ui.view</field>
            <field name="group" ref="res.group_admin"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
            <field name="perm_create" eval="True"/>
            <field name="perm_delete" eval="True"/>
        </record>

        <record model="ir.ui.view" id="view_tree_width_view_form">
            <field name="model">ir.ui.view_tree_width</field>
            <field name="type">form</field>
            <field name="name">ui_view_tree_width_form</field>
        </record>
        <record model="ir.ui.view" id="view_tree_width_view_tree">
            <field name="model">ir.ui.view_tree_width</field>
            <field name="type">tree</field>
            <field name="name">ui_view_tree_width_list</field>
        </record>

        <record model="ir.action.act_window" id="act_view_tree_width_form">
            <field name="name">View Tree Width</field>
            <field name="type">ir.action.act_window</field>
            <field name="res_model">ir.ui.view_tree_width</field>
            <field name="domain" eval="[('model_ref', 'in', Eval('active_ids', []))]" pyson="1"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_view_tree_width_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="view_tree_width_view_tree"/>
            <field name="act_window" ref="act_view_tree_width_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_view_tree_width_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="view_tree_width_view_form"/>
            <field name="act_window" ref="act_view_tree_width_form"/>
        </record>
        <record model="ir.action.keyword" id="act_view_tree_width_form_keyword_model">
            <field name="keyword">form_relate</field>
            <field name="model">ir.model,-1</field>
            <field name="action" ref="act_view_tree_width_form"/>
        </record>

        <record model="ir.ui.view" id="view_tree_optional_view_form">
            <field name="model">ir.ui.view_tree_optional</field>
            <field name="type">form</field>
            <field name="name">ui_view_tree_optional_form</field>
        </record>

        <record model="ir.ui.view" id="view_tree_optional_view_tree">
            <field name="model">ir.ui.view_tree_optional</field>
            <field name="type">tree</field>
            <field name="name">ui_view_tree_optional_list</field>
        </record>

        <record model="ir.action.act_window" id="act_view_tree_optional_form">
            <field name="name">View Tree Optional</field>
            <field name="res_model">ir.ui.view_tree_optional</field>
            <field name="domain" eval="[('model_ref', 'in', Eval('active_ids', []))]" pyson="1"/>
        </record>
        <record model="ir.action.act_window.view" id="act_view_tree_optional_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="view_tree_optional_view_tree"/>
            <field name="act_window" ref="act_view_tree_optional_form"/>
        </record>
        <record model="ir.action.act_window.view" id="act_view_tree_optional_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="view_tree_optional_view_form"/>
            <field name="act_window" ref="act_view_tree_optional_form"/>
        </record>
        <record model="ir.action.keyword" id="act_view_tree_optional_form_keyword_model">
            <field name="keyword">form_relate</field>
            <field name="model">ir.model,-1</field>
            <field name="action" ref="act_view_tree_optional_form"/>
        </record>

        <record model="ir.ui.view" id="view_tree_state_form">
            <field name="model">ir.ui.view_tree_state</field> 
            <field name="type">form</field>
            <field name="name">ui_view_tree_state_form</field>
        </record>
        <record model="ir.ui.view" id="view_tree_state_tree">
            <field name="model">ir.ui.view_tree_state</field>
            <field name="type">tree</field>
            <field name="name">ui_view_tree_state_list</field>
        </record>

        <record model="ir.action.act_window" id="act_view_tree_state">
            <field name="name">View Tree State</field>
            <field name="res_model">ir.ui.view_tree_state</field>
            <field name="domain" eval="[('model_ref', 'in', Eval('active_ids', []))]" pyson="1"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_view_tree_state_tree">
            <field name="sequence" eval="10"/>
            <field name="view" ref="view_tree_state_tree"/>
            <field name="act_window" ref="act_view_tree_state"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_view_tree_state_form">
            <field name="sequence" eval="20"/>
            <field name="view" ref="view_tree_state_form"/>
            <field name="act_window" ref="act_view_tree_state"/>
        </record>
        <record model="ir.action.keyword" id="act_view_tree_state_keyword_model">
            <field name="keyword">form_relate</field>
            <field name="model">ir.model,-1</field>
            <field name="action" ref="act_view_tree_state"/>
        </record>

        <record model="ir.model.access" id="rule_default_view_tree_state">
            <field name="model">ir.ui.view_tree_state</field>
            <field name="perm_read" eval="False" />
            <field name="perm_write" eval="False" />
            <field name="perm_create" eval="False" />
            <field name="perm_delete" eval="False" />
        </record>
        <record model="ir.model.access" id="rule_group_view_tree_state">
            <field name="model">ir.ui.view_tree_state</field>
            <field name="group" ref="res.group_admin" />
            <field name="perm_read" eval="True" />
            <field name="perm_write" eval="True" />
            <field name="perm_create" eval="True" />
            <field name="perm_delete" eval="True" />
        </record>

        <record model="ir.ui.view" id="view_search_form">
            <field name="model">ir.ui.view_search</field> 
            <field name="type">form</field>
            <field name="name">ui_view_search_form</field>
        </record>
        <record model="ir.ui.view" id="view_search_tree">
            <field name="model">ir.ui.view_search</field>
            <field name="type">tree</field>
            <field name="name">ui_view_search_list</field>
        </record>

        <record model="ir.action.act_window" id="act_view_search">
            <field name="name">View Search</field>
            <field name="res_model">ir.ui.view_search</field>
            <field name="domain" eval="[('model_ref', 'in', Eval('active_ids', []))]" pyson="1"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_view_search_tree">
            <field name="sequence" eval="10"/>
            <field name="view" ref="view_search_tree"/>
            <field name="act_window" ref="act_view_search"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_view_search_form">
            <field name="sequence" eval="20"/>
            <field name="view" ref="view_search_form"/>
            <field name="act_window" ref="act_view_search"/>
        </record>
        <record model="ir.action.keyword" id="act_view_search_keyword_model">
            <field name="keyword">form_relate</field>
            <field name="model">ir.model,-1</field>
            <field name="action" ref="act_view_search"/>
        </record>

        <record model="ir.model.access" id="access_view_search">
            <field name="model">ir.ui.view_search</field>
            <field name="perm_read" eval="False" />
            <field name="perm_write" eval="False" />
            <field name="perm_create" eval="False" />
            <field name="perm_delete" eval="False" />
        </record>
        <record model="ir.model.access" id="access_view_search_admin">
            <field name="model">ir.ui.view_search</field>
            <field name="group" ref="res.group_admin" />
            <field name="perm_read" eval="True" />
            <field name="perm_write" eval="True" />
            <field name="perm_create" eval="True" />
            <field name="perm_delete" eval="True" />
        </record>
    </data>
</tryton>
