跳至內容
選單
此問題已被標幟
1 回覆
3288 瀏覽次數

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
2750
1
3月 16
3579
2
3月 15
3509
1
4月 16
4582
0
7月 15
3476