Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
940 Переглядів

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.

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Автор

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

Related Posts Відповіді Переглядів Дія
2
лист. 24
2174
4
лют. 24
12301
sale / delivery Вирішено
1
січ. 24
1661
0
трав. 23
1888
4
квіт. 23
41822