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
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
1927
화면
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
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
4
10월 24
|
1245 | ||
|
0
4월 24
|
1621 | ||
|
3
4월 24
|
1763 | ||
|
0
3월 24
|
1796 | ||
|
1
6월 24
|
1554 |