콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
767 화면
attrs="{'readonly': [('invoice_count','!=',0),('state','=','sale')]}" This is odoo 16 xml readonly attribute part, Can someone help me to convert this readonly condituion to odoo18
아바타
취소
베스트 답변

Hi,


Try with the following code.

<field name="your_field_name" readonly="invoice_count != 0 and state == sale)"/>


Hope it helps

아바타
취소
베스트 답변
readonly="invoice_count and state == 'sale'"
아바타
취소
관련 게시물 답글 화면 활동
0
1월 25
870
3
8월 24
16043
1
11월 19
3856
1
8월 18
5157
1
3월 15
5055