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

When I want to create a new customer, customer boolean field is true by default.

In my inherited view I have the field cust_type:

<field name="cust_type" attrs="{'invisible':[('customer','!=',True)],'required':[('customer','=',True)]}"/>

Although, the customer field is True the cust_type field is invisible. When I unckeck and check again the customer field the cust _type becomes visible.

What can I do to have cust_type visible from the beginning?

아바타
취소
작성자

I found the problem. When I try to create a new customer the boolean field customer by default is 1 and when check it and uncheck the customer field is true.

베스트 답변

Set your field value cust_type as true in default for a customer

아바타
취소
관련 게시물 답글 화면 활동
2
6월 19
16460
1
9월 25
1860
0
4월 24
1215
0
11월 23
1523
0
6월 23
2532