Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5449 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 25
926
Odoo Server Error แก้ไขแล้ว
1
เม.ย. 25
1068
0
พ.ย. 24
1312
0
ต.ค. 24
1407
1
พ.ค. 24
4599