Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1098 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Nov. 24
2262
4
Feb. 24
12524
1
Jan. 24
1717
0
Mai 23
1950
4
Apr. 23
42086