콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1123 화면

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
2299
4
2월 24
12568
sale / delivery 해결 완료
1
1월 24
1765
0
5월 23
1963
4
4월 23
42142