Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
5429 Weergaven

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
Annuleer
Beste antwoord

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

Avatar
Annuleer

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

Gerelateerde posts Antwoorden Weergaven Activiteit
1
apr. 25
920
1
apr. 25
1059
0
nov. 24
1309
0
okt. 24
1405
1
mei 24
4592