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

Hi, so I just made a custom field on the customer form before, but the custom I made is also changing on the vendor form. How to visible the custom field I made in only customer form?

아바타
취소
베스트 답변

Hi,

Which version are you working on ? 

If you're in developper mode, you should be able to look at the name of the field for vendor or customer.

Easiest way to hide it for non customers is to add a domain in your XML.

For example in the field declaration (field name="your_field") you can add attrs="{'invisible': [('user_type', '!=', 'customer')]}"

Don't forget to replace user_type by the correct field name.

Hope it will help

아바타
취소
관련 게시물 답글 화면 활동
1
4월 23
11478
1
6월 22
2720
2
8월 20
9193
1
11월 19
5758
1
6월 19
7051