<?xml version="1.0"?>
<tryton>
    <data>

<!-- Menu items in lims_menu.xml -->

<!-- Project -->

        <record model="ir.ui.view" id="lims_project_view_form">
            <field name="model">lims.project</field>
            <field name="inherit" ref="lims_project.lims_project_view_form"/>
            <field name="name">project_form</field>
        </record>

<!-- TAS Type -->

        <record model="ir.ui.view" id="lims_tas_type_view_form">
            <field name="model">lims.tas.type</field>
            <field name="type">form</field>
            <field name="name">tas_type_form</field>
        </record>
        <record model="ir.ui.view" id="lims_tas_type_view_list">
            <field name="model">lims.tas.type</field>
            <field name="type">tree</field>
            <field name="name">tas_type_list</field>
        </record>

        <record model="ir.action.act_window" id="act_lims_tas_type_list">
            <field name="name">TAS Types</field>
            <field name="res_model">lims.tas.type</field>
        </record>
        <record model="ir.action.act_window.view" id="act_lims_tas_type_view_list">
            <field name="sequence" eval="10"/>
            <field name="view" ref="lims_tas_type_view_list"/>
            <field name="act_window" ref="act_lims_tas_type_list"/>
        </record>
        <record model="ir.action.act_window.view" id="act_lims_tas_type_view_form">
            <field name="sequence" eval="20"/>
            <field name="view" ref="lims_tas_type_view_form"/>
            <field name="act_window" ref="act_lims_tas_type_list"/>
        </record>

<!-- Menu -->

        <!-- Configuration / Projects / TAS Types -->
        <menuitem parent="lims_project.lims_config_projects"
            action="act_lims_tas_type_list"
            id="lims_tas_type_menu" sequence="10"/>

<!-- Access Rights on Models -->

        <record model="ir.model.access" id="access_tas_type">
            <field name="model" search="[('model', '=', 'lims.tas.type')]"/>
            <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_tas_type_group_conf_project_admin">
            <field name="model" search="[('model', '=', 'lims.tas.type')]"/>
            <field name="group" ref="lims_project.group_lims_conf_project_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>
