Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
938 Представления

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
2171
4
февр. 24
12299
sale / delivery Решено
1
янв. 24
1660
0
мая 23
1887
4
апр. 23
41815