admission_workflow.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- General structure of a workflow XML file -->
  5. <record model="workflow" id="wkf_event">
  6. <field name="name">workflow.event</field>
  7. <field name="osv">student.student</field>
  8. <field name="on_create">True</field>
  9. </record>
  10. <!-- Admission Procedure Workflow Activities -->
  11. <record model="workflow.activity" id="act_draft">
  12. <field name="wkf_id" ref="wkf_event"/>
  13. <field name="name">activity.draft</field>
  14. <field name="flow_start">True</field>
  15. </record>
  16. <record model="workflow.activity" id="act_confirm">
  17. <field name="name">activity.confirm</field>
  18. <field name="wkf_id" ref="wkf_event"/>
  19. <field name="kind">function</field>
  20. <field name="action">admission_confirm()</field>
  21. </record>
  22. <record model="workflow.activity" id="act_cancel">
  23. <field name="wkf_id" ref="wkf_event"/>
  24. <field name="name">activity.cancel</field>
  25. <field name="flow_stop">True</field>
  26. <field name="kind">function</field>
  27. <field name="action">admission_cancel()</field>
  28. </record>
  29. <record model="workflow.activity" id="act_done">
  30. <field name="name">activity.done</field>
  31. <field name="wkf_id" ref="wkf_event"/>
  32. <field name="flow_stop">True</field>
  33. <field name="kind">function</field>
  34. <field name="action">admission_done()</field>
  35. </record>
  36. <!-- Admission Procedure Workflow Transitions -->
  37. <record model="workflow.transition" id="trans_draft_confirm">
  38. <field name="act_from" ref="act_draft"/>
  39. <field name="act_to" ref="act_confirm"/>
  40. <field name="signal">admission_confirm</field>
  41. </record>
  42. <record model="workflow.transition" id="trans_confirm_cancel">
  43. <field name="act_from" ref="act_confirm"/>
  44. <field name="act_to" ref="act_cancel"/>
  45. <field name="signal">admission_cancel</field>
  46. </record>
  47. <record model="workflow.transition" id="trans_confirm_done">
  48. <field name="act_from" ref="act_confirm"/>
  49. <field name="act_to" ref="act_done"/>
  50. <field name="signal">admission_done</field>
  51. </record>
  52. </data>
  53. </openerp>