12345678910111213141516171819202122232425262728293031 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record id="wkf_nota" model="workflow">
- <field name="name">sale.nota.remision.basic</field>
- <field name="osv">sale.nota.remision</field>
- <field name="on_create">True</field>
- </record>
- <!-- Activity -->
- <record id="act_draft" model="workflow.activity">
- <field name="wkf_id" ref="wkf_nota"/>
- <field name="flow_start">True</field>
- <field name="name">draft</field>
- </record>
- <record id="act_progress" model="workflow.activity">
- <field name="wkf_id" ref="wkf_nota"/>
- <field name="flow_stop">True</field>
- <field name="name">progress</field>
- <field name="kind">function</field>
- <field name="action">write({'state':'progress'})</field>
- </record>
- <record id="trans_draf_progress" model="workflow.transition">
- <field name="act_from" ref="act_draft"/>
- <field name="act_to" ref="act_progress"/>
- </record>
- </data>
- </openerp>
|