Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5568 Vizualizări

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 !

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează

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 Răspunsuri Vizualizări Activitate
2
sept. 25
306
1
apr. 25
1121
1
apr. 25
1273
0
nov. 24
1496
0
oct. 24
1523