Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
884 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
2
nov. 24
2094
4
feb. 24
12235
1
ian. 24
1599
0
mai 23
1837
4
apr. 23
41692