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

Hello,

I'm trying to use a HTML fied to display a specific tab.


In this tab I want to print a checkbox (not modifiable):

<div class="o_field_boolean o_field_widget custom-control custom-checkbox">
    <input type="checkbox" id="checkbox-{id_line}" disabled="">
</div>

But in the result, I have my tab with all my others values but for the checkbox nothing is displayed. When I inspect the element there is only the div with nothing inside:

<div class="o_field_boolean o_field_widget custom-control custom-checkbox">

</div>

How can I display a checkbox in a HTML field ?


아바타
취소
베스트 답변

Hello Theo,

I have copy and pasted your code into the website view and after putting the backslash at the end of the input tag everything seems to work as expected. 

<input type="checkbox" id="checkbox-{id_line}" disabled=""/>
I hope this helps,

Thanks, 

아바타
취소
작성자 베스트 답변

Hello,

Thanks for the answer,

It works when I add that in the elements view of the browser but when I add in the xml view it doesn't show up in the html then (after module upgrade).

아바타
취소
관련 게시물 답글 화면 활동
2
7월 21
12204
1
6월 25
15531
3
4월 25
5762
Compute Fields 해결 완료
2
7월 24
3660