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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
4
oct. 24
|
1246 | ||
|
0
avr. 24
|
1622 | ||
|
3
avr. 24
|
1764 | ||
|
0
mars 24
|
1798 | ||
|
1
juin 24
|
1554 |