Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5409 Widoki

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 !

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 25
918
1
kwi 25
1056
0
lis 24
1306
0
paź 24
1404
1
maj 24
4584