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?
Esta pergunta foi sinalizada
1
Responder
10244
Visualizações
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
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
4
out. 24
|
3439 | ||
|
|
0
abr. 24
|
3630 | ||
|
Deploy confugration
Resolvido
|
|
3
mar. 26
|
10030 | |
|
|
0
mar. 24
|
4427 | ||
|
|
1
ago. 25
|
3403 |