跳至内容
菜单
此问题已终结

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

形象
丢弃
最佳答案

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.

形象
丢弃
相关帖文 回复 查看 活动
1
5月 23
2702
2
5月 16
4876
0
9月 24
2878
1
9月 23
5621
1
4月 23
227