Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1381 มุมมอง

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
2478
4
ก.พ. 24
12900
sale / delivery แก้ไขแล้ว
1
ม.ค. 24
1914
0
พ.ค. 23
2193
4
เม.ย. 23
42511