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

Hello everyone!

I have been having an error in the res.users view when I created a new security group. 

Instead of a form divided by goup categories i was getting a-kinda tree view of groups only. 

If anybody had this problem I found that there is a method that calculated the category groups so that makes the res.users form to look 'normal' again. 


groups = self.env['res.groups']

groups._update_user_groups_view()

self.env.cr.commit()


That way the view gets by category again


it might be helpful to somebody,

greetings

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

Probably the error is because there is no api.depends here in _update_user_groups_view. It will no recalculate if you add a new group. 

아바타
취소
관련 게시물 답글 화면 활동
2
9월 23
2584
1
11월 24
3513
2
8월 24
14592
1
7월 24
1716
2
11월 21
4078