Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
8319 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mai. 23
2959
2
mai. 16
5077
0
set. 24
3264
1
set. 23
5855
1
abr. 23
227