Hello, I have created a custom module in my Odoo instance and have implemented a new user group within it. My objective is to assign this group to users by default upon their creation. Could you please provide guidance on how to achieve this?
لقد تم الإبلاغ عن هذا السؤال
1
الرد
10246
أدوات العرض
Hi,
If you need to assign it for all the users from code, you can do it by overriding the create method of the res.users model.
But the cleaner solution, will be updating the Default user template with this user group.
* Navigate to general settings and click "Default User Template"
* Add your group for this user
* Now on creating new user, this group will be automatically added


Thanks
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
4
أكتوبر 24
|
3441 | ||
|
|
0
أبريل 24
|
3631 | ||
|
Deploy confugration
تم الحل
|
|
3
مارس 26
|
10037 | |
|
|
0
مارس 24
|
4436 | ||
|
|
1
أغسطس 25
|
3404 |