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

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
7
Haz 24
24748
0
Eyl 20
2260
1
Haz 20
11620
0
Ağu 19
3785
0
Tem 23
2