123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <!-- General structure of a workflow XML file -->
- <record model="workflow" id="wkf_event">
- <field name="name">workflow.event</field>
- <field name="osv">student.student</field>
- <field name="on_create">True</field>
- </record>
- <!-- Admission Procedure Workflow Activities -->
- <record model="workflow.activity" id="act_draft">
- <field name="wkf_id" ref="wkf_event"/>
- <field name="name">activity.draft</field>
- <field name="flow_start">True</field>
- </record>
- <record model="workflow.activity" id="act_confirm">
- <field name="name">activity.confirm</field>
- <field name="wkf_id" ref="wkf_event"/>
- <field name="kind">function</field>
- <field name="action">admission_confirm()</field>
- </record>
- <record model="workflow.activity" id="act_cancel">
- <field name="wkf_id" ref="wkf_event"/>
- <field name="name">activity.cancel</field>
- <field name="flow_stop">True</field>
- <field name="kind">function</field>
- <field name="action">admission_cancel()</field>
- </record>
-
- <record model="workflow.activity" id="act_done">
- <field name="name">activity.done</field>
- <field name="wkf_id" ref="wkf_event"/>
- <field name="flow_stop">True</field>
- <field name="kind">function</field>
- <field name="action">admission_done()</field>
- </record>
- <!-- Admission Procedure Workflow Transitions -->
- <record model="workflow.transition" id="trans_draft_confirm">
- <field name="act_from" ref="act_draft"/>
- <field name="act_to" ref="act_confirm"/>
- <field name="signal">admission_confirm</field>
- </record>
- <record model="workflow.transition" id="trans_confirm_cancel">
- <field name="act_from" ref="act_confirm"/>
- <field name="act_to" ref="act_cancel"/>
- <field name="signal">admission_cancel</field>
- </record>
- <record model="workflow.transition" id="trans_confirm_done">
- <field name="act_from" ref="act_confirm"/>
- <field name="act_to" ref="act_done"/>
- <field name="signal">admission_done</field>
- </record>
- </data>
- </openerp>
|