Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1074 มุมมอง

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
2471
1
พ.ย. 24
3390
user access to customed res.users fields แก้ไขแล้ว
2
ส.ค. 24
14437
1
ก.ค. 24
1607
2
พ.ย. 21
3969