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?
Bu soru işaretlendi
1
Cevapla
10228
Görünümler
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
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
4
Eki 24
|
3437 | ||
|
|
0
Nis 24
|
3623 | ||
|
Deploy confugration
Çözüldü
|
|
3
Mar 26
|
10012 | |
|
|
0
Mar 24
|
4415 | ||
|
|
1
Ağu 25
|
3399 |