Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2283 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
paź 24
1418
0
kwi 24
1675
3
kwi 24
2106
0
mar 24
1859
1
sie 25
1525