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

I have a model called patient contains all patient data, I need to add another menu for some group of users that open the model but without any sensitive data such as Name, but it's by default the _rec_name of the model, how to hide the name of the patient on specific action to be another field or static string like "Patient"

any help will be appreciated...

아바타
취소
베스트 답변

Not sure if it will 100% work or not but still you can try.

Add a context in any of the actions of the menu and override name_get method and pass the value of the field you want to show depending on the context.

아바타
취소
작성자

i do it by adding a new group this not child of any one else and do a condition in name_get method to show another field and it's worked well

Thanks dear for your answer

관련 게시물 답글 화면 활동
3
2월 25
18864
1
6월 24
2745
0
10월 23
43275
1
10월 23
4949
2
2월 23
5358