<?xml version="1.0"?>
<!-- This file is part of nereid-project. The COPYRIGHT file at the top level
of this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <record id="nereid_work_view_form" model="ir.ui.view">
            <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;general&quot;]/separator[@name=&quot;comment&quot;]"
                        position="before">
                      <label name="assigned_to"/>
                      <field name="assigned_to"/>
                      <label name="progress_state"/>
                      <field name="progress_state"/>
                    </xpath>
                    <xpath expr="/form/notebook" position="inside">
                        <page string="Participants" id="project_participants">
                            <separator name="participants" colspan="4"/>
                            <field name="participants" colspan="4"/>
                            <separator name="all_participants" colspan="4"/>
                            <field name="all_participants" colspan="4"/>
                        </page>
                        <page string="Tags" id="project_tags">
                            <separator name="tags" colspan="4"/>
                            <field name="tags_for_projects" colspan="4"/>
                            <field name="tags" colspan="4"/>
                        </page>
                        <page string="Commits" id="project_repo_commits">
                            <field name="repo_commits" colspan="4"/>
                        </page>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="timesheet_by_employee_by_day_form">
            <field name="model">timesheet_by_employee_by_day</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Update Gantt Chart">
                    <label name="employee"/>
                    <field name="employee"/>
                    <label name="date"/>
                    <field name="date"/>
                    <label name="hours"/>
                    <field name="hours"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="nereid.activity.allowed_model"
                id="activity_allowed_model_work">
          <field name="name">ProjectWork</field>
          <field name="model" search="[('model', '=', 'project.work')]"/>
        </record>
        <record model="nereid.activity.allowed_model"
                id="activity_allowed_model_work_tag">
          <field name="name">ProjectWorkTag</field>
          <field name="model" search="[('model', '=', 'project.work.tag')]"/>
        </record>
        <record model="nereid.activity.allowed_model"
                id="activity_allowed_model_nereid_user">
          <field name="name">NereidUser</field>
          <field name="model" search="[('model', '=', 'nereid.user')]"/>
        </record>
        <record model="nereid.activity.allowed_model"
                id="activity_allowed_model_work_history">
          <field name="name">ProjectWorkHistory</field>
          <field name="model" search="[('model', '=', 'project.work.history')]"/>
        </record>
        <record model="nereid.activity.allowed_model"
                id="activity_allowed_model_timesheet_line">
          <field name="name">TimesheetLine</field>
          <field name="model" search="[('model', '=', 'timesheet.line')]"/>
        </record>

        <record id="permission_project_admin" model="nereid.permission">
          <field name="name">Project Admin</field>
          <field name="value">project.admin</field>
        </record>
        <record id="permission_project_manager" model="nereid.permission">
          <field name="name">Project Manager</field>
          <field name="value">project.manager</field>
        </record>

    </data>
</tryton>

