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

        <!--
            Process Node
        -->

        <record id="process_node_timesheettask0" model="process.node">
            <field name="model_id" ref="hr_timesheet.model_hr_analytic_timesheet"/>
            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Timesheet task&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Complete Your Timesheet.&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="project.process_process_tasksprocess0"/>
            <field eval="0" name="flow_start"/>
        </record>

        <record id="process_node_taskwork0" model="process.node">
            <field name="menu_id" ref="project.menu_action_view_task"/>
            <field name="model_id" ref="project.model_project_task_work"/>
            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Task Work&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Work on task&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="hr_timesheet_sheet.process_process_hrtimesheetprocess0"/>
            <field eval="&quot;&quot;&quot;object.state=='open'&quot;&quot;&quot;" name="model_states"/>
            <field eval="1" name="flow_start"/>
        </record>

        <record id="process_node_triggerinvoice0" model="process.node">
            <field name="menu_id" ref="account.menu_finance_receivables"/>
            <field name="model_id" ref="account.model_account_invoice"/>
            <field eval="&quot;&quot;&quot;subflow&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Trigger Invoice&quot;&quot;&quot;" name="name"/>
            <field name="subflow_id" ref="account.process_process_invoiceprocess0"/>
            <field eval="&quot;&quot;&quot;Trigger invoices from sales order lines&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="project.process_process_tasksprocess0"/>
            <field eval="&quot;&quot;&quot;object.state=='paid'&quot;&quot;&quot;" name="model_states"/>
            <field eval="0" name="flow_start"/>
        </record>

         <!--
            Process Transition
        -->

        <record id="process_transition_filltimesheet0" model="process.transition">
            <field eval="[(6,0,[])]" name="transition_ids"/>
            <field eval="&quot;&quot;&quot;Fill Timesheet&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Task summary is comes into the timesheet line&quot;&quot;&quot;" name="note"/>
            <field model="process.node" name="target_node_id" ref="process_node_timesheettask0"/>
            <field model="process.node" name="source_node_id" ref="project.process_node_opentask0"/>
        </record>

        <record id="process_transition_taskencoding0" model="process.transition">
            <field eval="[(6,0,[])]" name="transition_ids"/>
            <field eval="&quot;&quot;&quot;Task encoding&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Encode how much time u spent on your task&quot;&quot;&quot;" name="note"/>
            <field model="process.node" name="target_node_id" ref="hr_timesheet_sheet.process_node_timesheet0"/>
            <field model="process.node" name="source_node_id" ref="process_node_taskwork0"/>
        </record>

        <record id="process_transition_taskinvoice0" model="process.transition">
            <field eval="[(6,0,[])]" name="transition_ids"/>
            <field eval="&quot;&quot;&quot;Task invoice&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;After task is completed, Create its invoice.&quot;&quot;&quot;" name="note"/>
            <field model="process.node" name="target_node_id" ref="process_node_triggerinvoice0"/>
            <field model="process.node" name="source_node_id" ref="project.process_node_donetask0"/>
        </record>

    </data>
</openerp>
