Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1889 Представления

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?

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
4
окт. 24
1241
0
апр. 24
1617
3
апр. 24
1756
0
мар. 24
1779
1
июн. 24
1527