Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
9312 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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.


Avatar
Abbandona
Risposta migliore

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

with_context(mail_auto_subscribe_no_notify=True)

Avatar
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
gen 19
5855
0
ago 22
1955
2
set 20
5020
2
lug 19
4931
5
dic 17
9877