コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
5459 ビュー

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
934
1
4月 25
1071
0
11月 24
1331
0
10月 24
1411
1
5月 24
4600