Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
5442 Переглядів

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
921
Odoo Server Error Вирішено
1
квіт. 25
1068
0
лист. 24
1311
0
жовт. 24
1406
1
трав. 24
4597