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?
Dette spørgsmål er blevet anmeldt
1
Svar
10240
Visninger
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
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
|
4
okt. 24
|
3439 | ||
|
|
0
apr. 24
|
3627 | ||
|
Deploy confugration
Løst
|
|
3
mar. 26
|
10023 | |
|
|
0
mar. 24
|
4418 | ||
|
|
1
aug. 25
|
3401 |