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

I want to send a mail from template that won't be seen in mail.message chatter in the bottom of the form view.

Do I've to set that on the mail template or any other way? For mail sending I'm using the send_mail method from mail_template model.

I've set the auto_delete to true on the template, but it's still shown to long in the chatter.

อวตาร
ละทิ้ง

Hi Samo, did you solve this issue? I have the same problem..

คำตอบที่ดีที่สุด

Please try use auto_delete

email_values = {'auto_delete': True}
template.send_mail(employee.id, force_send=True, raise_exception=False, email_values=email_values)


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi


In V12, add email_values={'model': None, 'res_id': None}
exemple :

template.send_mail(employee.id, force_send=True, raise_exception=False, email_values={'model': None, 'res_id': None})


อวตาร
ละทิ้ง

works

Related Posts ตอบกลับ มุมมอง กิจกรรม
How to ORDER BY? [Odoo 10] แก้ไขแล้ว
2
พ.ย. 24
26950
2
พ.ค. 24
6477
3
มี.ค. 24
5839
0
มี.ค. 24
933
3
ก.พ. 24
12166