콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
3274
2
5월 16
5372
0
9월 24
3821
1
9월 23
6178
1
4월 23
227