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

Hi Guys

I want to make the whole form view readonly when the value of state = "waiting"


How can I do this ? I tried to use fields_view_get method but I don't know how to use it in my case.


Thanks in advance !!

Avatar
Descartar
Best Answer

I dont know if you can make the whole form view readonly
you can use this to make any field readonly in a form view

<field name="your_field" attrs="{'readonly':[('state ', '!=', 'waiting')]}" />

Use this in every field.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de maig 23
2833
2
de maig 16
4960
0
de set. 24
3079
1
de set. 23
5692
1
d’abr. 23
227