コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
3017 ビュー

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
9148
1
1月 21
9990
1
10月 20
7760
1
5月 19
3158
0
12月 16
3897