İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1033 Görünümler

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
Vazgeç
Üretici En İyi Yanı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. 

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Eyl 23
2422
1
Kas 24
3364
2
Ağu 24
14400
1
Tem 24
1588
2
Kas 21
3928