Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
2995 Tampilan

Hello,

I have configure email in odoo 11 and working fine, but now i want to create a function in my code to sent email after request has been submitted to recipient.

Any Help?



Avatar
Buang
Penulis

Ok, thanks i will try this code

Penulis

Hello Sudhir thanks a lot but how do i sent email from template as well?

Jawaban Terbai

Do you want to send an email from button click? If yes, use following code:

mail_template = self.env.ref('my_module.my_email_template') // Get Email Template by XML ID
mail_template.send_mail(record.id, force_send=True) // Send Email


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Des 23
9113
1
Jan 21
9943
1
Okt 20
7733
1
Mei 19
3146
0
Des 16
3854