Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
9330 Представления

Hi,

I would like to disable or block email notification  when assigned (leads or opportunity ) to users , Odoo send email notification with lead or opportunity details. I am using Odoo 10.0

Аватар
Отменить
Лучший ответ

Hello

Try below code to avoid email notification when try to create new record (version 10.0)

For example if you want to create new task but disable email notification to follower you can reference below code

task = super(Task, self.with_context(mail_notrack=True)).create(vals)

Hope this help you.

Best Thanks,

Ankit H Gandhi.


Аватар
Отменить
Лучший ответ

For task creation do it like this (tested in Odoo 17):

with_context(mail_auto_subscribe_no_notify=True)

Аватар
Отменить
Автор Лучший ответ

I used it for another purpose , I  just want to disable send email notification  when lead or opportunity assigned to users . 

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
янв. 19
5867
0
авг. 22
1970
2
сент. 20
5038
2
июл. 19
4950
5
дек. 17
9892