Skip to Content
Menú
This question has been flagged
1 Respondre
3281 Vistes

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
Descartar
Autor 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
Descartar
Related Posts Respostes Vistes Activitat
1
de set. 17
2741
1
de març 16
3575
2
de març 15
3507
1
d’abr. 16
4568
0
de jul. 15
3474