Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3254 Tampilan

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, 




Avatar
Buang
Penulis Jawaban Terbai

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>
Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Sep 17
2710
1
Mar 16
3567
2
Mar 15
3495
1
Apr 16
4551
0
Jul 15
3471