Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2217 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
říj 24
1405
0
dub 24
1653
3
dub 24
2030
0
bře 24
1847
1
srp 25
1513