Skip to Content
Menú
This question has been flagged
1 Respondre
899 Vistes

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
Descartar
Best Answer

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

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

Related Posts Respostes Vistes Activitat
2
de nov. 24
2133
4
de febr. 24
12260
1
de gen. 24
1631
0
de maig 23
1867
4
d’abr. 23
41772