Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1064 Переглядів

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. 

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
вер. 23
2452
1
лист. 24
3380
2
серп. 24
14419
1
лип. 24
1601
2
лист. 21
3957