I do many transition on workflow that work but the transition funded to draft doesn't work:
<record model="workflow.transition" id="convention_funded_to_draft">
<field name="act_from" ref="funded"/>
<field name="act_to" ref="draft"/>
<field name="signal">draft</field>
</record>
only funded to done appears:
<record model="workflow.transition" id="convention_funded_to_done">
<field name="act_from" ref="funded"/>
<field name="act_to" ref="done"/>
<field name="signal">done</field>
</record>
here is my complete xml code:
<odoo>
<data>
<record model="workflow" id="convention_wkf">
<field name="name">Convention workflow</field>
<field name="osv">mybeeformation.convention</field>
<field name="on_create">True</field>
</record>
<record model="workflow.activity" id="draft">
<field name="name">draft</field>
<field name="wkf_id" ref="convention_wkf"/>
<field name="flow_start" eval="True"/>
<field name="kind">function</field>
<field name="action">action_draft()</field>
</record>
<record model="workflow.activity" id="confirmed">
<field name="name">confirmed</field>
<field name="wkf_id" ref="convention_wkf"/>
<field name="kind">function</field>
<field name="action">action_confirm()</field>
</record>
<record model="workflow.activity" id="funded">
<field name="name">funded</field>
<field name="wkf_id" ref="convention_wkf"/>
<field name="kind">function</field>
<field name="action">action_funded()</field>
</record>
<record model="workflow.activity" id="done">
<field name="name">done</field>
<field name="wkf_id" ref="convention_wkf"/>
<field name="kind">function</field>
<field name="action">action_done()</field>
</record>
<record model="workflow.activity" id="paid">
<field name="name">paid</field>
<field name="wkf_id" ref="convention_wkf"/>
<field name="flow_stop" eval="True"/>
<field name="kind">function</field>
<field name="action">action_paid()</field>
</record>
<record model="workflow.transition" id="convention_draft_to_confirmed">
<field name="act_from" ref="draft"/>
<field name="act_to" ref="confirmed"/>
<field name="signal">confirmed</field>
</record>
<record model="workflow.transition" id="convention_confirmed_to_draft">
<field name="act_from" ref="confirmed"/>
<field name="act_to" ref="draft"/>
<field name="signal">draft</field>
</record>
<record model="workflow.transition" id="convention_funded_to_draft">
<field name="act_from" ref="funded"/>
<field name="act_to" ref="draft"/>
<field name="signal">draft</field>
</record>
<record model="workflow.transition" id="convention_done_to_draft">
<field name="act_from" ref="done"/>
<field name="act_to" ref="draft"/>
<field name="signal">draft</field>
</record>
<record model="workflow.transition" id="convention_confirmed_to_funded">
<field name="act_from" ref="confirmed"/>
<field name="act_to" ref="funded"/>
<field name="signal">funded</field>
</record>
<record model="workflow.transition" id="convention_funded_to_done">
<field name="act_from" ref="funded"/>
<field name="act_to" ref="done"/>
<field name="signal">done</field>
</record>
<record model="workflow.transition" id="convention_done_to_paid">
<field name="act_from" ref="done"/>
<field name="act_to" ref="paid"/>
<field name="signal">paid</field>
</record>
</data>
</odoo>