Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5454 Lượt xem

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 !

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 25
930
Odoo Server Error Đã xử lý
1
thg 4 25
1068
0
thg 11 24
1324
0
thg 10 24
1409
1
thg 5 24
4599