跳至內容
選單
此問題已被標幟
2 回覆
5447 瀏覽次數

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

相關帖文 回覆 瀏覽次數 活動
1
4月 25
926
1
4月 25
1068
0
11月 24
1312
0
10月 24
1407
1
5月 24
4599