Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
178 Visninger

Hi everyone,


I want to be able to hide certain columns in project.task.list:


This works:

<field name="x_studio_so_line_notes_rel" optional="show" column_invisible="1"/>

<field name="x_studio_so_line_notes_rel" optional="show" column_invisible="1 == 1"/>


But nothing else works:

<field name="x_studio_so_line_notes_rel" optional="show" column_invisible="project_id.active"/>

<field name="x_studio_so_line_notes_rel" optional="show" column_invisible="x_studio_bool_test"/>


I want to keep the column hidden if project_id.x_studio_order_type != 'Order'


What am I doing wrong? Any workaround?

Thank you!

Avatar
Kassér
Bedste svar

Hi,


Please try the code below.


<field name="x_studio_so_line_notes_rel" optional="show" column_invisible="parent.project_id.active"/>


Hope it helps

Avatar
Kassér
Bedste svar

https://www.odoo.com/documentation/19.0/developer/reference/user_interface/view_architectures/generic_attribute_column_invisible.html

You need a Python expression that doesn't rely on subtree values (so parent values).


Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
aug. 25
1116
1
nov. 22
3399
2
apr. 19
8474
1
mar. 15
4357
1
mar. 15
6816