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

In odoo 14, I can't define a maximum width for a one2many field
or for any field included in the  corresponding  treeview.

As a result, some long text values make the field displayed out of the sheet !

I tried everything (col, colspan, style="width:xx% !important;" but nothing works !

Thanks for any help !

아바타
취소
베스트 답변

After a lot of searching I found a solution...I put it in my comments

아바타
취소

After a lot of searching I found a solution... with the width attribute with xpath:
<xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="attributes">
<attribute name="width" >170px</attribute>.
</xpath

관련 게시물 답글 화면 활동
1
4월 25
939
Odoo Server Error 해결 완료
1
4월 25
1073
0
11월 24
1338
0
10월 24
1415
1
5월 24
4612