<?xml version="1.0" ?>
<openerp>
    <data noupdate="1">
<!--
This Demo data file Human Resources, Phases and Resources,Tasks allocation and  also run scheduling of phase and tasks.
-->
        <!-- Human Resources -->
        <record id="resource_analyst" model="resource.resource">
            <field name="user_id" ref="project.res_users_analyst"/>
            <field name="name">Analyst</field>
            <field name="calendar_id" ref="resource.timesheet_group1"/>
        </record>

        <record id="resource_project_manager" model="resource.resource">
            <field name="user_id" ref="project.res_users_project_manager"/>
            <field name="name">Project Manager</field>
            <field name="calendar_id" ref="resource.timesheet_group1"/>
        </record>

         <record id="resource_technical_leader" model="resource.resource">
            <field name="user_id" ref="project.res_users_technical_leader"/>
            <field name="name">Technical Leader</field>
            <field name="calendar_id" ref="resource.timesheet_group1"/>
        </record>

        <record id="resource_developer" model="resource.resource">
            <field name="user_id" ref="project.res_users_developer"/>
            <field name="name">Developer</field>
            <field name="calendar_id" ref="resource.timesheet_group1"/>
        </record>

        <record id="resource_designer" model="resource.resource">
            <field name="user_id" ref="project.res_users_designer"/>
            <field name="name">Designer</field>
            <field name="calendar_id" ref="resource.timesheet_group1"/>
        </record>

        <record id="resource_tester" model="resource.resource">
            <field name="user_id" ref="project.res_users_tester"/>
            <field name="name">Tester</field>
            <field name="calendar_id" ref="resource.timesheet_group1"/>
        </record>

        <record id="resource_finacial_manager" model="resource.resource">
            <field name="user_id" ref="project.res_users_finacial_manager"/>
            <field name="name">Project Finacial Manager</field>
            <field name="calendar_id" ref="resource.timesheet_group1"/>
        </record>



        

        <!-- Project Phases -->
        <record id="project_phase_1" model="project.phase">
            <field eval="[(6, 0, [])]" name="previous_phase_ids"/>
            <field name="name">Collect Requirement and Make SRS</field>
            <field name="product_uom" ref="product.uom_day"/>
            <field eval="1" name="sequence"/>
            <field name="duration">30</field>
            <field name="responsible_id" ref="project.res_users_analyst"/>
            <field name="project_id" ref="project.project_integrate_openerp"/>
        </record>

        <record id="project_phase_2" model="project.phase">
            <field eval="[(6, 0, [ref('project_phase_1')])]" name="previous_phase_ids"/>
            <field name="name">Design Model</field>
            <field name="product_uom" ref="product.uom_day"/>
            <field eval="2" name="sequence"/>
            <field name="duration">20</field>
            <field name="responsible_id" ref="project.res_users_project_manager"/>
            <field name="project_id" ref="project.project_integrate_openerp"/>
        </record>

        <record id="project_phase_3" model="project.phase">
            <field eval="[(6, 0, [ref('project_phase_2')])]" name="previous_phase_ids"/>
            <field name="name">Planning and compute Risk analysis, Time chart </field>
            <field name="product_uom" ref="product.uom_day"/>
            <field eval="3" name="sequence"/>
            <field name="duration">20</field>
            <field name="responsible_id" ref="project.res_users_project_manager"/>
            <field name="project_id" ref="project.project_integrate_openerp"/>
        </record>

        <record id="project_phase_4" model="project.phase">
            <field eval="[(6, 0, [ref('project_phase_2')])]" name="previous_phase_ids"/>
            <field name="name">Development and Integration</field>
            <field name="product_uom" ref="product.uom_day"/>
            <field eval="4" name="sequence"/>
            <field name="duration">90</field>
            <field name="responsible_id" ref="project.res_users_technical_leader"/>
            <field name="project_id" ref="project.project_integrate_openerp"/>
        </record>

        <record id="project_phase_5" model="project.phase">
            <field eval="[(6, 0, [ref('project_phase_4')])]" name="previous_phase_ids"/>
            <field name="name">Review and Testing</field>
            <field name="product_uom" ref="product.uom_day"/>
            <field eval="5" name="sequence"/>
            <field name="duration">30</field>
            <field name="responsible_id" ref="project.res_users_project_manager"/>
            <field name="project_id" ref="project.project_integrate_openerp"/>
        </record>

        <record id="project_phase_6" model="project.phase">
            <field eval="[(6, 0, [ref('project_phase_5')])]" name="previous_phase_ids"/>
            <field name="name">Deployement and Training</field>
            <field name="product_uom" ref="product.uom_day"/>
            <field eval="5" name="sequence"/>
            <field name="duration">10</field>
            <field name="responsible_id" ref="project.res_users_analyst"/>
            <field name="project_id" ref="project.project_integrate_openerp"/>
        </record>

        <!--  Project Resource Allocation -->
        <record id="resource_allocation_1" model="project.resource.allocation">
            <field name="resource_id" ref="resource_analyst"/>
            <field name="phase_id" ref="project_phase_1"/>
        </record>

        <record id="resource_allocation_2" model="project.resource.allocation">
            <field name="resource_id" ref="resource_project_manager"/>
            <field name="phase_id" ref="project_phase_2"/>
        </record>

        <record id="resource_allocation_3" model="project.resource.allocation">
            <field name="resource_id" ref="resource_project_manager"/>
            <field name="phase_id" ref="project_phase_3"/>
        </record>

        <record id="resource_allocation_4" model="project.resource.allocation">
            <field name="resource_id" ref="resource_technical_leader"/>
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="resource_allocation_5" model="project.resource.allocation">
            <field name="resource_id" ref="resource_developer"/>
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="resource_allocation_6" model="project.resource.allocation">
            <field name="resource_id" ref="resource_designer"/>
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="resource_allocation_7" model="project.resource.allocation">
            <field name="resource_id" ref="resource_tester"/>
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="resource_allocation_8" model="project.resource.allocation">
            <field name="resource_id" ref="resource_project_manager"/>
            <field name="phase_id" ref="project_phase_5"/>
        </record>

        <record id="resource_allocation_9" model="project.resource.allocation">
            <field name="resource_id" ref="resource_analyst"/>
            <field name="phase_id" ref="project_phase_6"/>
        </record>

        <!-- Tasks -->

        <record id="project.project_task_1" model="project.task">
            <field name="phase_id" ref="project_phase_1"/>
        </record>

        <record id="project.project_task_2" model="project.task">
            <field name="phase_id" ref="project_phase_1"/>
        </record>

        <record id="project.project_task_3" model="project.task">
            <field name="phase_id" ref="project_phase_2"/>
        </record>

        <record id="project.project_task_4" model="project.task">
            <field name="phase_id" ref="project_phase_3"/>
        </record>

        <record id="project.project_task_5" model="project.task">
            <field name="phase_id" ref="project_phase_3"/>
        </record>

        <record id="project.project_task_6" model="project.task">
            <field name="phase_id" ref="project_phase_3"/>
        </record>

        <record id="project.project_task_7" model="project.task">
            <field name="phase_id" ref="project_phase_3"/>
        </record>

        <record id="project.project_task_8" model="project.task">
            <field name="phase_id" ref="project_phase_3"/>
        </record>

        <record id="project.project_task_9" model="project.task">
            <field name="phase_id" ref="project_phase_3"/>
        </record>

        <record id="project.project_task_10" model="project.task">
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="project.project_task_11" model="project.task">
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="project.project_task_12" model="project.task">
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="project.project_task_13" model="project.task">
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="project.project_task_14" model="project.task">
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="project.project_task_15" model="project.task">
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="project.project_task_16" model="project.task">
            <field name="phase_id" ref="project_phase_4"/>
        </record>

        <record id="project.project_task_17" model="project.task">
            <field name="phase_id" ref="project_phase_6"/>
        </record>

        <record id="project.project_task_18" model="project.task">
            <field name="phase_id" ref="project_phase_6"/>
        </record>

        <!-- run scheduling of phase -->
        <!--<function model="project.project" name="schedule_phases" eval="(ref('project.project_integrate_openerp'),)"/>-->
        <!-- run scheduling of tasks -->
        <!--<function model="project.project" name="schedule_tasks" eval="(ref('project.project_integrate_openerp'),)"/>-->

    </data>
</openerp>
