To make workflow transitions in OpenERP/Odoo ?
If you want to make workflow transitions in OpenERP(Odoo) follow the below mentioned code and paste it in your workflow_xml file:
<record id="trans_idea_draft_confirmed" model="workflow.transition">
<field name="act_from" ref="act_draft"/>
<field name="act_to" ref="act_confirmed"/>
<field name="signal">button_confirm</field>
<field name="role_id" ref="idea_manager"/>
<field name="condition">1 == 1</field>
</record
Note-> act_from, act_to identifiers of the source and destination activities
signal ->name of a button of type workflow that triggers this transition
role_id ->reference to the role that user must have to trigger the transition
condition ->Python expression that must evaluate to True for transition to be triggered
0 Comment(s)