Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
9404 มุมมอง

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
5908
0
ส.ค. 22
2020
2
ก.ย. 20
5061
2
ก.ค. 19
5029
5
ธ.ค. 17
9982