Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
6700 Visninger

I am trying to inherit one group's access rights to another group in odoo using python code.

Example :-

i have a hr_manager group and restrict_user group.

i want to inherit hr_manager group to restrict_user group during creation of a new user.

Please suggest..

Avatar
Kassér
Bedste svar

If you have a group A, then you can create/write a group B that inherit the access rights of A. 

self.env['res.groups'].create({'name': 'B', 'implied_ids': [(6, 0, A.ids)]})

implied_ids is a many2many field that does exactly what you need

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
7
jun. 24
25079
0
sep. 20
2418
1
jun. 20
12003
0
aug. 19
3928
0
jul. 23
2