Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
8251 Vistas

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
may 23
2836
2
may 16
4966
0
sept 24
3084
1
sept 23
5695
1
abr 23
227