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

I want to hide the edit button for a user with a specific group in the javascript.

I tested it with this, but this is not working right:

users.call('has_group', ['test_module.group_first_manager']).done(function (is_employee) { if (is_employee) { this.$button.find('.o_form_button_edit').hide(); } else { this.$button.find('.o_form_button_edit').show(); } });


I want to remove the edit button for users that are in the gropu = 'group_first_manager'

So have anyone an input for me to fix my problem?

Thank you





아바타
취소

Hii why did you not do this using access control list. Using access control list you gives access of following.

1- Read

2- Write

3- Create

4- Delete

for a particular group of user.

작성자

I want to know if this is possible in the javascript of Odoo. I could do it like you said thats right. thx

관련 게시물 답글 화면 활동
1
8월 15
2906
2
9월 22
4032
0
3월 19
2733
1
3월 15
5951
1
11월 21
5818