تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
928 أدوات العرض

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
نوفمبر 24
2157
4
فبراير 24
12287
sale / delivery تم الحل
1
يناير 24
1657
0
مايو 23
1879
4
أبريل 23
41796