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

The default of the button is invisible.

Access Right Scenario:
User: The button will show if create_uid is not equal to the partner_id
Manager: This button will always display.

What I did was:

attrs="{'visible':[('groups_ids','=','group_user'),('groups_ids','=','group_manager')]}"

Any idea on how to achieve it in another way?


아바타
취소
베스트 답변

Create a boolean computed field whose value is computed based on the conditions you need and use the value of that field to control the visibility of the button.

아바타
취소
작성자

thanks for this

관련 게시물 답글 화면 활동
1
6월 23
3347
0
7월 23
2264
0
5월 18
3958
0
7월 23
2
0
7월 23
5