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

    <!-- Activities -->
    <record model="workflow" id="wkf_prod_workcenter">
        <field name="name">mrp.production.workcenter.line.basic</field>
        <field name="osv">mrp.production.workcenter.line</field>
        <field name="on_create">True</field>
    </record>

    <record model="workflow.activity" id="prod_act_wc_draft">
        <field name="wkf_id" ref="wkf_prod_workcenter"/>
        <field name="flow_start">True</field>
        <field name="name">draft</field>
        <field name="kind">function</field>
        <field name="action">action_draft()</field>
    </record>
    <record model="workflow.activity" id="prod_act_wc_start">
        <field name="wkf_id" ref="wkf_prod_workcenter"/>
        <field name="name">startworking</field>
        <field name="kind">function</field>
        <field name="action">action_start_working()</field>
    </record>
    <record model="workflow.activity" id="prod_act_wc_cancel">
        <field name="wkf_id" ref="wkf_prod_workcenter"/>
        <field name="name">cancel</field>
        <field name="kind">function</field>
        <field name="action">action_cancel()</field>
    </record>
    <record model="workflow.activity" id="prod_act_wc_pause">
        <field name="wkf_id" ref="wkf_prod_workcenter"/>
        <field name="name">pause</field>
        <field name="kind">function</field>
        <field name="action">action_pause()</field>
    </record>
    <record model="workflow.activity" id="prod_act_wc_resume">
        <field name="wkf_id" ref="wkf_prod_workcenter"/>
        <field name="name">resume</field>
        <field name="kind">function</field>
        <field name="action">action_resume()</field>
    </record>
    <record model="workflow.activity" id="prod_act_wc_done">
        <field name="wkf_id" ref="wkf_prod_workcenter"/>
        <field name="name">done</field>
        <field name="kind">function</field>
        <field name="flow_stop">True</field>
        <field name="action">action_done()</field>
    </record>

    <!-- Transition -->
    <record model="workflow.transition" id="prod_trans_wc_draft_start">
        <field name="act_from" ref="prod_act_wc_draft"/>
        <field name="act_to" ref="prod_act_wc_start"/>
        <field name="signal">button_start_working</field>
    </record>
    <record model="workflow.transition" id="prod_trans_wc_start_done">
        <field name="act_from" ref="prod_act_wc_start"/>
        <field name="act_to" ref="prod_act_wc_done"/>
        <field name="signal">button_done</field>
    </record>
    <record model="workflow.transition" id="prod_trans_wc_draft_cancel">
        <field name="act_from" ref="prod_act_wc_draft"/>
        <field name="act_to" ref="prod_act_wc_cancel"/>
        <field name="signal">button_cancel</field>
    </record>
    <record model="workflow.transition" id="prod_trans_wc_cancel_draft">
        <field name="act_from" ref="prod_act_wc_cancel"/>
        <field name="act_to" ref="prod_act_wc_draft"/>
        <field name="signal">button_draft</field>
    </record>
    <record model="workflow.transition" id="prod_trans_wc_start_cancel">
        <field name="act_from" ref="prod_act_wc_start"/>
        <field name="act_to" ref="prod_act_wc_cancel"/>
        <field name="signal">button_cancel</field>
    </record>
    <record model="workflow.transition" id="prod_trans_wc_start_pause">
        <field name="act_from" ref="prod_act_wc_start"/>
        <field name="act_to" ref="prod_act_wc_pause"/>
        <field name="signal">button_pause</field>
    </record>

    <record model="workflow.transition" id="prod_trans_wc_pause_resume">
        <field name="act_from" ref="prod_act_wc_pause"/>
        <field name="act_to" ref="prod_act_wc_resume"/>
        <field name="signal">button_resume</field>
    </record>

    <record model="workflow.transition" id="prod_trans_wc_resume_pause">
        <field name="act_from" ref="prod_act_wc_resume"/>
        <field name="act_to" ref="prod_act_wc_pause"/>
        <field name="signal">button_pause</field>
    </record>
    <record model="workflow.transition" id="prod_trans_wc_resume_cancel">
        <field name="act_from" ref="prod_act_wc_resume"/>
        <field name="act_to" ref="prod_act_wc_cancel"/>
        <field name="signal">button_cancel</field>
    </record>
    <record model="workflow.transition" id="prod_trans_wc_resume_done">
        <field name="act_from" ref="prod_act_wc_resume"/>
        <field name="act_to" ref="prod_act_wc_done"/>
        <field name="signal">button_done</field>
    </record>

</data>
</openerp>
