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

    <!--
        Process
    -->

        <record id="process_process_tasksprocess0" model="process.process">
            <field eval="1" name="active"/>
            <field name="model_id" ref="project.model_project_task"/>
            <field eval="&quot;&quot;&quot;Tasks&quot;&quot;&quot;" name="name"/>
        </record>

    <!--
        Process Node
    -->

        <record id="process_node_taskbydelegate0" model="process.node">
            <field name="menu_id" ref="project.menu_action_view_task"/>
            <field name="model_id" ref="project.model_project_task"/>
            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Task by delegate&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Delegate your task to the other user&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="process_process_tasksprocess0"/>
            <field eval="&quot;&quot;&quot;object.state in ('open', 'pending')&quot;&quot;&quot;" name="model_states"/>
            <field eval="1" name="flow_start"/>
        </record>

        <record id="process_node_drafttask0" model="process.node">
            <field name="menu_id" ref="project.menu_action_view_task"/>
            <field name="model_id" ref="project.model_project_task"/>
            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Draft task&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Define the Requirements and Set Planned Hours.&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="process_process_tasksprocess0"/>
            <field eval="&quot;&quot;&quot;object.state=='draft'&quot;&quot;&quot;" name="model_states"/>
            <field eval="0" name="flow_start"/>
        </record>

        <record id="process_node_opentask0" model="process.node">
            <field name="menu_id" ref="project.menu_action_view_task"/>
            <field name="model_id" ref="project.model_project_task"/>
            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Open task&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Encode your working hours.&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="process_process_tasksprocess0"/>
            <field eval="&quot;&quot;&quot;object.state=='open'&quot;&quot;&quot;" name="model_states"/>
            <field eval="0" name="flow_start"/>
        </record>

        <record id="process_node_donetask0" model="process.node">
            <field name="menu_id" ref="project.menu_action_view_task"/>
            <field name="model_id" ref="project.model_project_task"/>
            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Done task&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Task is Completed&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="process_process_tasksprocess0"/>
            <field eval="&quot;&quot;&quot;object.state=='done'&quot;&quot;&quot;" name="model_states"/>
            <field eval="0" name="flow_start"/>
        </record>

    <!--
        Process Transition
    -->

        <record id="process_transition_delegate0" model="process.transition">
            <field eval="[(6,0,[])]" name="transition_ids"/>
            <field eval="&quot;&quot;&quot;Delegate&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Delegates tasks to the other user&quot;&quot;&quot;" name="note"/>
            <field model="process.node" name="target_node_id" ref="process_node_drafttask0"/>
            <field model="process.node" name="source_node_id" ref="process_node_taskbydelegate0"/>
        </record>

        <record id="process_transition_draftopentask0" model="process.transition">
            <field eval="[(6,0,[])]" name="transition_ids"/>
            <field eval="&quot;&quot;&quot;Draft Open task&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;From draft state, it will come into the open state.&quot;&quot;&quot;" name="note"/>
            <field model="process.node" name="target_node_id" ref="process_node_opentask0"/>
            <field model="process.node" name="source_node_id" ref="process_node_drafttask0"/>
        </record>

        <record id="process_transition_opendonetask0" model="process.transition">
            <field eval="[(6,0,[])]" name="transition_ids"/>
            <field eval="&quot;&quot;&quot;Open Done Task&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;When task is completed, it will come into the done state.&quot;&quot;&quot;" name="note"/>
            <field model="process.node" name="target_node_id" ref="process_node_donetask0"/>
            <field model="process.node" name="source_node_id" ref="process_node_opentask0"/>
        </record>


        <!--
            Process Action
        -->

        <record id="process_transition_action_draftopentask0" model="process.transition.action">
            <field eval="&quot;&quot;&quot;do_open&quot;&quot;&quot;" name="action"/>
            <field eval="&quot;&quot;&quot;object&quot;&quot;&quot;" name="state"/>
            <field eval="&quot;&quot;&quot;Open&quot;&quot;&quot;" name="name"/>
            <field name="transition_id" ref="process_transition_draftopentask0"/>
        </record>

        <record id="process_transition_action_draftcanceltask0" model="process.transition.action">
            <field eval="&quot;&quot;&quot;do_cancel&quot;&quot;&quot;" name="action"/>
            <field eval="&quot;&quot;&quot;object&quot;&quot;&quot;" name="state"/>
            <field eval="&quot;&quot;&quot;Cancel&quot;&quot;&quot;" name="name"/>
            <field name="transition_id" ref="process_transition_draftopentask0"/>
        </record>

        <record id="process_transition_action_openpendingtask0" model="process.transition.action">
            <field eval="&quot;&quot;&quot;do_pending&quot;&quot;&quot;" name="action"/>
            <field eval="&quot;&quot;&quot;object&quot;&quot;&quot;" name="state"/>
            <field eval="&quot;&quot;&quot;Set pending&quot;&quot;&quot;" name="name"/>
            <field name="transition_id" ref="process_transition_opendonetask0"/>
        </record>

        <record id="process_transition_action_opendrafttask0" model="process.transition.action">
            <field eval="&quot;&quot;&quot;do_draft&quot;&quot;&quot;" name="action"/>
            <field eval="&quot;&quot;&quot;object&quot;&quot;&quot;" name="state"/>
            <field eval="&quot;&quot;&quot;Draft&quot;&quot;&quot;" name="name"/>
            <field name="transition_id" ref="process_transition_opendonetask0"/>
        </record>

        <record id="process_transition_action_opencanceltask0" model="process.transition.action">
            <field eval="&quot;&quot;&quot;do_cancel&quot;&quot;&quot;" name="action"/>
            <field eval="&quot;&quot;&quot;object&quot;&quot;&quot;" name="state"/>
            <field eval="&quot;&quot;&quot;Cancel&quot;&quot;&quot;" name="name"/>
            <field name="transition_id" ref="process_transition_opendonetask0"/>
        </record>

    </data>
</openerp>
