Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1061 Zobrazení

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

Avatar
Zrušit
Autor Nejlepší odpověď

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. 

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
zář 23
2445
1
lis 24
3380
2
srp 24
14415
1
čvc 24
1599
2
lis 21
3954