跳至內容
選單
此問題已被標幟
1 回覆
8259 瀏覽次數

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
2838
2
5月 16
4969
0
9月 24
3095
1
9月 23
5702
1
4月 23
227