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

Hello,

I am working on Odoo 18 in a multicompany setup. I am trying to display a custom field in sales order list view only for one company only.

However the invisible condition does not seem to have any effect and it is beign diaplyed on all companies.



Can anyone help me?

Thanks.

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

Hi,

To make a field invisible in a list view, you should use the column_invisible attribute.

You can use it like this:


<field name="your_field" column_invisible="company_id not in [your_company_ids]"/>


Hope it helps

Ảnh đại diện
Huỷ bỏ
Tác giả

Hello,
Thanks for the reply.
When using your solution, its saying company_id is undefined. My field is of char datatype.

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 11 24
2182
4
thg 2 24
12304
sale / delivery Đã xử lý
1
thg 1 24
1667
0
thg 5 23
1890
4
thg 4 23
41837