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 !
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
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
Hi,
Reference
https://www.odoo.com/forum/help-1/how-to-change-column-width-in-tree-view-one2many-many2many-26693
also, you can refer to this
https://www.odoo.com/forum/help-1/changing-column-widths-tree-view-35981
Regards
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
1
أبريل 25
|
565 | ||
Odoo Server Error
تم الحل
|
|
1
أبريل 25
|
679 | |
|
0
نوفمبر 24
|
893 | ||
|
0
أكتوبر 24
|
1008 | ||
|
1
مايو 24
|
4149 |