Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2136 Tampilan

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?

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
4
Okt 24
1374
0
Apr 24
1631
3
Apr 24
1959
0
Mar 24
1831
1
Agu 25
1441