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:
- CRM
- e-Commerce
- Kirjanpito
- Varastointi
- PoS
- Project
- MRP
Tämä kysymys on merkitty
1
Vastaa
1733
Näkymät
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
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
Add New Operation Type in Warehouse
Ratkaistu
|
|
2
jouluk. 24
|
3668 | |
|
1
marrask. 24
|
2372 | ||
|
2
huhtik. 23
|
16606 | ||
|
4
elok. 24
|
22888 | ||
|
0
jouluk. 21
|
1998 |