Skip to Content
Menu
This question has been flagged
1 Atsakyti
3194 Rodiniai

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, 




Portretas
Atmesti
Autorius 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>
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugs. 17
2633
1
kov. 16
3518
2
kov. 15
3436
1
bal. 16
4462
0
liep. 15
3439