跳至内容
菜单
此问题已终结
2 回复
5586 查看

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 !

形象
丢弃
最佳答案

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

形象
丢弃

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

相关帖文 回复 查看 活动
2
9月 25
329
1
4月 25
1125
1
4月 25
1276
0
11月 24
1499
0
10月 24
1525