コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
941 ビュー

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.

関連投稿 返信 ビュー 活動
2
11月 24
2174
4
2月 24
12301
1
1月 24
1661
0
5月 23
1888
4
4月 23
41822