İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1008 Görünümler

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.

Avatar
Vazgeç
En İyi Yanı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

Avatar
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Kas 24
2210
4
Şub 24
12373
sale / delivery Çözüldü
1
Oca 24
1687
0
May 23
1912
4
Nis 23
41939