Skip to Content
Menu
This question has been flagged
1 Atsakyti
8246 Rodiniai

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 !!

Portretas
Atmesti
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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
geg. 23
2835
2
geg. 16
4963
0
rugs. 24
3081
1
rugs. 23
5695
1
bal. 23
227