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?
Denna fråga har flaggats
1
Besvara
10222
Vyer
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
Njuter du av diskussionen? Läs inte bara, delta också!
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
|
4
okt. 24
|
3435 | ||
|
|
0
apr. 24
|
3623 | ||
|
Deploy confugration
Löst
|
|
3
mars 26
|
10008 | |
|
|
0
mars 24
|
4415 | ||
|
|
1
aug. 25
|
3399 |