コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3302 ビュー

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
2768
1
3月 16
3594
2
3月 15
3533
1
4月 16
4598
0
7月 15
3496