跳至内容
菜单
此问题已终结
1 回复
6032 查看

I am using V14 with the new adjustable column widths in list view.   This is great except anytime I enter the form or make a change on the list view my column widths revert back to their default widths hiding some of my data.  Has anyone found a way to set the column widths and have them stay in V14?  

形象
丢弃
最佳答案

Hello Doug
to set column width permanent you can use width attribute in you column and set value according to your requirement.
Ex:
<field name="name" width="200px"/>
Thanks.

形象
丢弃
编写者

Hello Husain

Thank you for your response. I tried to add the width attribute in the xml for the list view but it didn't seem to have an impact. Here is an example of what I tried.

<data>

<xpath expr="//field[@name='partner_id']" position="replace">

<field name="x_studio_glazing_included" groups="base.group_multi_currency"/>

<field name="x_studio_distressing_included" groups="base.group_multi_currency"/>

<field name="x_studio_designer_notes"/>

</xpath>

<xpath expr="//field[@name='user_id']" position="replace">

<field name="x_studio_room_name" width="200px"/>

<field name="x_studio_ready_for_scheduling" width="20000px" widget="toggle_button" groups="sale.group_warning_sale,account.group_warning_account,account_accountant.group_fiscal_year,purchase.group_warning_purchase"/>

Is the attribute suppose to be added somewhere else?

Thanks