İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
8337 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
May 23
2986
2
May 16
5094
0
Eyl 24
3327
1
Eyl 23
5869
1
Nis 23
227