<?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.
        -->

        <record id="project.project_project_1" model="project.project">
            <field name="resource_calendar_id" ref="resource.timesheet_group1"/>
            <field name="use_phases" eval="True"/>
        </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.product_uom_day"/>
            <field eval="1" name="sequence"/>
            <field name="duration">30</field>
            <field name="constraint_date_start" eval="time.strftime('%Y-%m-01 10:00:00')"></field>
            <field name="project_id" ref="project.project_project_1"/>
        </record>

        <function model="project.phase" name="set_open" eval="[ref('project_phase_1')]"/>
        
        <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.product_uom_day"/>
            <field eval="2" name="sequence"/>
            <field name="duration">20</field>
            <field name="project_id" ref="project.project_project_1"/>
        </record>
        <function model="project.phase" name="set_open" eval="[ref('project_phase_2')]"/>
        
        <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.product_uom_day"/>
            <field eval="3" name="sequence"/>
            <field name="duration">20</field>
            <field name="project_id" ref="project.project_project_1"/>
        </record>
        <function model="project.phase" name="set_open" eval="[ref('project_phase_3')]"/>

        <record id="project_phase_4" model="project.phase">
            <field eval="[(6, 0, [ref('project_phase_3')])]" name="previous_phase_ids"/>
            <field name="name">Development and Integration</field>
            <field name="product_uom" ref="product.product_uom_day"/>
            <field eval="4" name="sequence"/>
            <field name="duration">90</field>
            <field name="project_id" ref="project.project_project_1"/>
        </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.product_uom_day"/>
            <field eval="5" name="sequence"/>
            <field name="duration">30</field>
            <field name="project_id" ref="project.project_project_1"/>
        </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.product_uom_day"/>
            <field eval="6" name="sequence"/>
            <field name="duration">10</field>
            <field name="project_id" ref="project.project_project_1"/>
        </record>

        <function model="project.phase" name="set_open" eval="[ref('project_phase_6')]"/>
        <!-- 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_4"/>
        </record>

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

        <record id="project.project_task_7" 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_project_1'),)"/>-->
        <!-- run scheduling of tasks -->
        <!--<function model="project.project" name="schedule_tasks" eval="(ref('project.project_project_1'),)"/>-->

    </data>
</openerp>
