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

hi everyone

I can't find the correct field to make a custom field on is_company

<field name="blahblah" attrs="{'invisible': [('is_company', '=', True)]}"/>

I know this works to add a field to person in the widget while hiding it in company form

but what is the correct string to add it to the company not individual?

I've tried 'person' 'parent_id' 'is_individual' 'is_person'

I have checked in res.partner xml for the correct string but couldn't locate it

thanks in advance


아바타
취소

Have you tried ('is_company', '=', False)?

작성자

yes sir I did. or do you mean <field name="blahblah' attrs="('is_company', '=', False)"/>

because I did not try that

작성자

oh boy silly question. I did try it before but had a spelling mistake..... that is the proper string thank you.

<field name="blahblah" attrs="{'invisible': [('is_company', '=', False)]}"/>

베스트 답변

<filter string="Individuals" name="type_person" domain="[('is_company', '=', False)]"/> is the correct filter for individuals.



아바타
취소
작성자

sorry but could you provide a xpath example for this with any field name?

관련 게시물 답글 화면 활동
5
9월 20
5436
2
8월 20
3769
1
6월 16
10443
1
7월 24
2578
0
1월 24
1905