Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6516 Vizualizări

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..

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
7
iun. 24
24706
0
sept. 20
2243
1
iun. 20
11551
0
aug. 19
3771
0
iul. 23
2