İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
5886 Görünümler

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
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Eyl 25
847
1
Nis 25
1418
1
Nis 25
1665
0
Kas 24
1792
0
Eki 24
1819