跳至内容
菜单
此问题已终结
1 回复
3258 查看

Hi everyone,

I want to put a condition when the state of an invoice change from draft to open 

this is my code :

<record id="invoice_draft_trans" model="workflow.transition">
<field name="act_from" ref=""/>
<field name="act_to" ref=""/>
<field name="signal">invoice_open</field>
<field name="condition">test_exceptions()</field>
</record>

I wan to know from where i can get the value of ref : act_from and act_to

i need your help guys

kind regards, 




形象
丢弃
编写者 最佳答案

the solution is :

<record id="invoice_draft_trans" model="workflow.transition">
<field name="act_from" ref="account.act_draft"/>
<field name="act_to" ref="account.act_open"/>
<field name="signal">invoice_open</field>
<field name="condition">test_exceptions()</field>
</record>
形象
丢弃
相关帖文 回复 查看 活动
1
9月 17
2720
1
3月 16
3567
2
3月 15
3498
1
4月 16
4555
0
7月 15
3471