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

I'm using Odoo 15 and in my development environment the user form is showing group settings as usual, but in production a list with all the user's groups is shown instead.


I've posted the same question on StackOverflow, for Odoo won't let me post images or links :( . The StackOverflow question ID is 76564992. 

Link: questions/76564992/odoo-15-user-form-showing-list-of-groups-instead-of-group-settings 

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

I was able to find the solution. I'm posting it to anyone who may have the same problem: 

Apparently, the group settings are rendered by a method called _update_user_groups_view in res.users. When the context indicates that an install/update/uninstall is running, groups_id is rendered as a list. Probably due to an error while updating, the context was indicating that an update was still running. After updating the system, the problem was solved.

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

Thank you very much for your solution 😇. I suddenly got into that situation. Your answer helped me a lot. I solved this issue by creating server action on res.groups with python code 'model._update_user_groups_view()'. Run this whenever needed instead of waiting for the web module update.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 21
2
1
thg 11 24
1415
0
thg 4 24
1276
3
thg 4 23
17953
1
thg 12 22
14115