Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
149 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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).


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
1114
1
thg 11 22
3396
2
thg 4 19
8471
1
thg 3 15
4355
1
thg 3 15
6812