跳至內容
選單
此問題已被標幟
3 回覆
2998 瀏覽次數

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?



頭像
捨棄
作者

Ok, thanks i will try this code

作者

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

最佳答案

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


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 23
9114
1
1月 21
9944
1
10月 20
7734
1
5月 19
3146
0
12月 16
3857