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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
1446
查看
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
|
770 | ||
|
0
4月 24
|
1167 | ||
|
3
4月 24
|
1282 | ||
|
0
3月 24
|
1202 | ||
|
1
6月 24
|
991 |