Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1030 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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. 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 23
2421
1
thg 11 24
3363
2
thg 8 24
14399
1
thg 7 24
1586
2
thg 11 21
3926