Skip to Content
Menu
This question has been flagged
2 Replies
5573 Rodiniai

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 !

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti

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 Replies Rodiniai Veikla
2
rugs. 25
312
1
bal. 25
1121
1
bal. 25
1274
0
lapkr. 24
1499
0
spal. 24
1524