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

i want to add this condition in a button 
invisible="['|', ('state', '!=', 'draft'), ('initial_invoice', '=', True)]"

It is not working for odoo17, How to make the or condition work ???

아바타
취소
베스트 답변

Try like this.

invisible="state != 'draft' or initial_invoice = True"
아바타
취소

its work for me,thank you

베스트 답변

You can try this. -> invisible="condition 1 or condition 2"

아바타
취소
관련 게시물 답글 화면 활동
3
2월 24
2343
0
4월 24
30
2
7월 18
14999
1
6월 25
3505
0
3월 25
815