コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6494 ビュー

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

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
7
6月 24
24696
0
9月 20
2222
1
6月 20
11543
0
8月 19
3761
0
7月 23
2