跳至內容
選單
此問題已被標幟
1 回覆
1048 瀏覽次數

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. 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
9月 23
2431
1
11月 24
3371
2
8月 24
14407
1
7月 24
1594
2
11月 21
3932