Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
8267 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
maj 23
2847
2
maj 16
4994
0
sep. 24
3103
1
sep. 23
5708
1
apr. 23
227