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

I'm trying to "hide" the column header from a list based on a checkbox condition. For example: if the checkbox is true, the column should be shown; otherwise, the entire column, including the header, should be hidden. I have noticed is that it only hides the content data or values, but not the header. I would like to confirm if it's possible to hide the header as well.

Sample Code:

 //

// {"invisible": [["x_studio_checkbox", "=", False]]}

 


아바타
취소
베스트 답변

You can use the nolabel attribute. To always hide the label, you can set nolabel="1", in your case, something like this should work:

{"invisible": [["x_studio_checkbox", "=", False]], "nolabel": [["x_studio_checkbox", "=", False]]}

// Odoo 17: field name="field_name" invisible="x_studio_checkbox == False" nolabel="x_studio_checkbox == False"




아바타
취소