تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5592 أدوات العرض

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
سبتمبر 25
333
1
أبريل 25
1127
Odoo Server Error تم الحل
1
أبريل 25
1276
0
نوفمبر 24
1502
0
أكتوبر 24
1525