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 !!
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
|
4617 | |||
|
2
5月 16
|
6668 | |||
|
0
9月 24
|
5734 | |||
|
1
9月 23
|
7364 | |||
|
1
4月 23
|
228 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.