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

My problem is I can't change the width of the label in form view. I can give the group a colspan of 4 but the label just takes the aprox 100px space and then the input field takes up everything else. The only way I managed  to stretch the label is by adding a long string to the group tag.

<group col="4" string="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed d."> 

    <field name="field_with_long_label"/>

</group>

아바타
취소
작성자

Thanks Hilar! Your way worked... using style in xml doesn't work but with the class it works. Sorry can't convert your comment to the answer, got to little karma.

베스트 답변

Hello Samo,.

You can try style for it. You can size it as per your requirement.
For example:
<field name="field_with_long_label" style="width:50%%" />
Hope it helps!

Regards,

Mayank Gosai

아바타
취소
베스트 답변

you can add a class to the field and give proper style with css and add it to the assets backend.

아바타
취소
베스트 답변

define style tag inside form and override bootstrap classes


    label.o_form_label {

    width:16rem

    }











아바타
취소
관련 게시물 답글 화면 활동
1
12월 21
5289
3
4월 18
6158
2
2월 18
3311
1
7월 17
4159
0
7월 17
3627