nota_remision_workflow.xml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="wkf_nota" model="workflow">
  5. <field name="name">sale.nota.remision.basic</field>
  6. <field name="osv">sale.nota.remision</field>
  7. <field name="on_create">True</field>
  8. </record>
  9. <!-- Activity -->
  10. <record id="act_draft" model="workflow.activity">
  11. <field name="wkf_id" ref="wkf_nota"/>
  12. <field name="flow_start">True</field>
  13. <field name="name">draft</field>
  14. </record>
  15. <record id="act_progress" model="workflow.activity">
  16. <field name="wkf_id" ref="wkf_nota"/>
  17. <field name="flow_stop">True</field>
  18. <field name="name">progress</field>
  19. <field name="kind">function</field>
  20. <field name="action">write({'state':'progress'})</field>
  21. </record>
  22. <record id="trans_draf_progress" model="workflow.transition">
  23. <field name="act_from" ref="act_draft"/>
  24. <field name="act_to" ref="act_progress"/>
  25. </record>
  26. </data>
  27. </openerp>