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

Is there a way to use a field of a certain model in attrs attribute without showing that specific field in the view form?

This is the error:

Field 'type_name' used in attrs ({'invisible': [('type_name', '=', 'Invoice')]}) must be present in view but is missing.

Many thanks!

아바타
취소
베스트 답변

Hi 

Make sure that the field type_name is present in view,otherwise add the following code in view record 

<field name="type_name" invisible="1"/>


Regards

아바타
취소
작성자 베스트 답변

Thank you, I just make the field to be invisible so that it doesn't show on the view form

아바타
취소
관련 게시물 답글 화면 활동
4
1월 24
23859
0
8월 23
2714
5
9월 21
18160
3
1월 21
18267
0
12월 19
4320