Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
5463 Visninger

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 !

Avatar
Kassér
Bedste svar

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

Avatar
Kassér

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

Related Posts Besvarelser Visninger Aktivitet
1
apr. 25
937
1
apr. 25
1072
0
nov. 24
1337
0
okt. 24
1411
1
maj 24
4602