Skip to Content
मेन्यू
This question has been flagged
1 Reply
3253 Views

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
Discard
Author Best Answer

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
Discard
Related Posts Replies Views Activity
1
सित॰ 17
2710
1
मार्च 16
3567
2
मार्च 15
3495
1
अप्रैल 16
4551
0
जुल॰ 15
3471