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?
Bu soru işaretlendi
1
Cevapla
4638
Görünümler
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
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
2
Ara 24
|
6569 | ||
|
|
1
Kas 25
|
5538 | ||
|
|
2
Nis 23
|
21887 | ||
|
|
4
Ağu 24
|
27125 | ||
|
|
0
Ara 21
|
4174 |