Hi everybody,
I would like to modify the workflow of the sale_order.
My goal is to have a intermediaire state between quotation and sale_order. When I use my function , I have this error:
- "The value "int" for the field "sale_order.state" is not in the selection
I add this code in the XML file:
<record id="act_int" model="workflow.activity">
<field name="wkf_id" ref="wkf_sale"/>
<field name="name">int</field>
<field name="kind">function</field>
<field name="action">write({'state':'int'})</field>
</record>
<record id="trans_int_sent" model="workflow.transition">
<field name="act_from" ref="act_draft"/>
<field name="act_to" ref="act_int"/>
<field name="signal">int_sent</field>
</record>
Someone have an idea how it works?
Thanks a lot,
Selverine