trytond-project_employee / work.xml

<?xml version="1.0"?>
<!-- This file is part project_employee module for Tryton.
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <record model="res.group" id="group_project_employee">
            <field name="name">Project Employee Administration</field>
        </record>
        <record model="res.user-res.group" id="user_admin_group_project_employee">
            <field name="user" ref="res.user_admin"/>
            <field name="group" ref="group_project_employee"/>
        </record>

        <record model="ir.ui.view" id="work_view_form">
            <field name="model">project.work</field>
            <field name="inherit" ref="project.work_view_form"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath expr="/form/notebook/page[@id=&quot;children&quot;]"
                           position="after">
                        <page string="Employees" id="employee">
                            <label name="employee"/>
                            <field name="employee"/>
                            <field name="employees" colspan="4"/>
                        </page>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="work_view_tree">
            <field name="model">project.work</field>
            <field name="inherit" ref="project.work_view_tree"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath expr="/tree/field[@name='total_effort']" position="after">
                        <field name="employee"/>
                        <field name="employees" tree_invisible="1"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="work_view_list">
            <field name="model">project.work</field>
            <field name="inherit" ref="project.work_view_list"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath expr="/tree/field[@name='total_effort']" position="after">
                        <field name="employee"/>
                        <field name="employees" tree_invisible="1"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="work_view_list2">
            <field name="model">project.work</field>
            <field name="inherit" ref="project.work_view_list2"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath expr="/tree/field[@name='total_effort']" position="after">
                        <field name="employee"/>
                        <field name="employees" tree_invisible="1"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>

        <!-- Access -->
        <record model="ir.model.access" id="access_project_work_company_employee">
            <field name="model" search="[('model', '=', 'project.work-company.employee')]"/>
            <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_project_work_company_employee_admin">
            <field name="model" search="[('model', '=', 'project.work-company.employee')]"/>
            <field name="group" ref="group_project_employee"/>
            <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>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.