系统不会更新workflow.xml中的flow_stop
。
尝试制作工作流程活动:
<record id="act_cancelled" model="workflow.activity">
<field name="wkf_id" ref="ig_account_voucher_wkf"/>
<field name="name">cancelled</field>
<field name="action">write({'state':'cancelled'})</field>
<field name="kind">function</field>
<field name="flow_stop">True</field>
</record>
将其改为:
<record id="act_cancelled" model="workflow.activity">
<field name="wkf_id" ref="ig_account_voucher_wkf"/>
<field name="name">cancelled</field>
<field name="action">write({'state':'cancelled'})</field>
<field name="kind">function</field>
<field name="flow_stop">False</field>
</record>
或者这个:
<record id="act_cancelled" model="workflow.activity">
<field name="wkf_id" ref="ig_account_voucher_wkf"/>
<field name="name">cancelled</field>
<field name="action">write({'state':'cancelled'})</field>
<field name="kind">function</field>
</record>
工作流始终在取消状态停止,除了编辑wkf_activity
表中的值之外,无法更新工作流。还有其他方法吗?或者这是一个错误?
答案 0 :(得分:0)
这不是你可以改变工作流程活动的错误吗
<record id="your_inherited_module_name.act_cancelled" model="workflow.activity">
<field name="wkf_id" ref="your_inherited_module_name.ig_account_voucher_wkf"/>
<field name="name">cancelled</field>
<field name="action">write({'state':'cancelled'})</field>
<field name="kind">function</field>
</record>
我希望这对你有用..:)