تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
7775 أدوات العرض

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يوليو 25
4635
2
نوفمبر 24
28548
2
مايو 24
7484
3
مارس 24
6919
0
مارس 24
1563