<?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="Modules"
            parent="menu_administration"
            sequence="20"
            id="menu_modules"/>
        <record model="ir.ui.view" id="module_view_form">
            <field name="model">ir.module</field>
            <field name="type">form</field>
            <field name="name">module_form</field>
        </record>
        <record model="ir.ui.view" id="module_view_tree">
            <field name="model">ir.module</field>
            <field name="type">tree</field>
            <field name="name">module_list</field>
        </record>
        <record model="ir.action.act_window" id="act_module_form">
            <field name="name">Modules</field>
            <field name="type">ir.action.act_window</field>
            <field name="res_model">ir.module</field>
            <field name="domain" eval="[('name', '!=', 'tests')]" pyson="1"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_module_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="module_view_tree"/>
            <field name="act_window" ref="act_module_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_module_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="module_view_form"/>
            <field name="act_window" ref="act_module_form"/>
        </record>
        <menuitem
            parent="menu_modules"
            action="act_module_form"
            sequence="10"
            id="menu_module_form"/>

        <record model="ir.model.button" id="module_activate_button">
            <field name="model">ir.module</field>
            <field name="name">activate</field>
            <field name="string">Activate</field>
        </record>
        <record model="ir.model.button-res.group" id="module_activate_button_group_admin">
            <field name="button" ref="module_activate_button"/>
            <field name="group" ref="res.group_admin"/>
        </record>

        <record model="ir.model.button" id="module_deactivate_button">
            <field name="model">ir.module</field>
            <field name="name">deactivate</field>
            <field name="string">Deactivate (beta)</field>
        </record>
        <record model="ir.model.button-res.group" id="module_deactivate_button_group_admin">
            <field name="button" ref="module_deactivate_button"/>
            <field name="group" ref="res.group_admin"/>
        </record>

        <record model="ir.model.button" id="module_upgrade_button">
            <field name="model">ir.module</field>
            <field name="name">upgrade</field>
            <field name="string">Upgrade</field>
        </record>
        <record model="ir.model.button-res.group" id="module_upgrade_button_group_admin">
            <field name="button" ref="module_upgrade_button"/>
            <field name="group" ref="res.group_admin"/>
        </record>

        <record model="ir.model.button" id="module_cancel_button">
            <field name="model">ir.module</field>
            <field name="name">cancel</field>
            <field name="string">Cancel</field>
        </record>
        <record model="ir.model.button-res.group" id="module_cancel_button_group_admin">
            <field name="button" ref="module_cancel_button"/>
            <field name="group" ref="res.group_admin"/>
        </record>

        <record model="ir.model.button" id="module_apply_button">
            <field name="model">ir.module</field>
            <field name="name">apply</field>
            <field name="string">Apply</field>
        </record>
        <record model="ir.model.button-res.group" id="module_apply_button_group_admin">
            <field name="button" ref="module_apply_button"/>
            <field name="group" ref="res.group_admin"/>
        </record>

        <record model="ir.model.access" id="access_module">
            <field name="model">ir.module</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_module_admin">
            <field name="model">ir.module</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="module_dependency_view_form">
            <field name="model">ir.module.dependency</field>
            <field name="type">form</field>
            <field name="name">module_dependency_form</field>
        </record>

        <record model="ir.ui.view" id="module_dependency_view_list">
            <field name="model">ir.module.dependency</field>
            <field name="type">tree</field>
            <field name="name">module_dependency_list</field>
        </record>

        <record model="ir.ui.view" id="config_wizard_item_view_tree">
            <field name="model">ir.module.config_wizard.item</field>
            <field name="type">tree</field>
            <field name="name">module_config_wizard_item_list</field>
        </record>
        <record model="ir.action.act_window" id="act_config_wizard_item_form">
            <field name="name">Config Wizard Items</field>
            <field name="res_model">ir.module.config_wizard.item</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_config_wizard_item_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="config_wizard_item_view_tree"/>
            <field name="act_window" ref="act_config_wizard_item_form"/>
        </record>
        <menuitem
            parent="menu_modules"
            action="act_config_wizard_item_form"
            sequence="50"
            id="menu_config_wizard_item_form"/>

        <record model="ir.action.wizard" id="act_module_config_wizard">
            <field name="name">Module Configuration</field>
            <field name="wiz_name">ir.module.config_wizard</field>
            <field name="window" eval="True"/>
        </record>
        <record model="ir.action.keyword" id="act_module_config_wizard_keyword">
            <field name="action" ref="act_module_config_wizard"/>
            <field name="keyword">form_action</field>
            <field name="model">ir.module.config_wizard.item,-1</field>
        </record>


        <record model="ir.ui.view" id="module_config_wizard_first_view_form">
            <field name="model">ir.module.config_wizard.first</field>
            <field name="type">form</field>
            <field name="name">module_config_wizard_first_form</field>
        </record>

        <record model="ir.ui.view" id="module_config_wizard_other_view_form">
            <field name="model">ir.module.config_wizard.other</field>
            <field name="type">form</field>
            <field name="name">module_config_wizard_other_form</field>
        </record>

        <record model="ir.ui.view" id="module_config_wizard_done_view_form">
            <field name="model">ir.module.config_wizard.done</field>
            <field name="type">form</field>
            <field name="name">module_config_wizard_done_form</field>
        </record>

        <record model="ir.action.wizard" id="act_module_activate_upgrade">
            <field name="name">Perform Pending Activation/Upgrade</field>
            <field name="wiz_name">ir.module.activate_upgrade</field>
        </record>
        <record model="ir.action-res.group" id="act_module_activate_upgrade_group_admin">
            <field name="action" ref="act_module_activate_upgrade"/>
            <field name="group" ref="res.group_admin"/>
        </record>

        <record model="ir.ui.view" id="module_activate_upgrade_start_view_form">
            <field name="model">ir.module.activate_upgrade.start</field>
            <field name="type">form</field>
            <field name="name">module_activate_upgrade_start_form</field>
        </record>

        <record model="ir.ui.view" id="module_activate_upgrade_done_view_form">
            <field name="model">ir.module.activate_upgrade.done</field>
            <field name="type">form</field>
            <field name="name">module_activate_upgrade_done_form</field>
        </record>

        <record model="ir.action.wizard" id="act_module_config">
            <field name="name">Configure Modules</field>
            <field name="wiz_name">ir.module.config</field>
            <field name="window" eval="True"/>
        </record>

        <record model="ir.ui.view" id="module_config_start_view_form">
            <field name="model">ir.module.config.start</field>
            <field name="type">form</field>
            <field name="name">module_config_start_form</field>
        </record>

        <record model="ir.module.config_wizard.item"
            id="config_wizard_item_module">
            <field name="action" ref="act_module_config"/>
            <field name="sequence" eval="10000"/>
        </record>
    </data>
</tryton>
