I am creating a user in the archived state using python code. But after creating the user, the system sends invitations and other emails to this user. How is it happening even if the user is disabled?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
1694
查看
Hi,
Archiving the user will not stop sending emails to the user. By default when we create a user the selection field notification_type in res.users will be set to emails. You can update this field value to inbox in order to handle the acknowledgments within odoo.
Try the below code,
self.env['res.users'].create({
'name': 'test user',
'login': 'test',
'email': 'p.p@example.com',
'notification_type': 'inbox',})
Thanks
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
12月 24
|
3645 | ||
|
1
11月 24
|
2332 | ||
|
2
4月 23
|
16443 | ||
|
4
8月 24
|
22747 | ||
|
0
12月 21
|
1965 |