Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3394 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
ott 24
1511
0
apr 24
1778
3
apr 24
3204
0
mar 24
2006
1
ago 25
1632