Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1765 Vistas

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
sept 23
3198
1
nov 24
4133
2
ago 24
15730
1
jul 24
2274
2
nov 21
4718