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

Hi,

Please how to make a required field only if another field is filled in odoo 10,

Regards,

아바타
취소
베스트 답변

Hi,

You can add a attribute for the field in XML like this,

attrs="{'required': [('field_name', '!=', False)]}"

Thanks

아바타
취소
작성자

Thanks i throught that's this work just with boolean